Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructured the repository into a monorepo. #19

Merged
merged 15 commits into from
Jul 21, 2024
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

10 changes: 6 additions & 4 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
- name: Checkout Code Repository
uses: actions/checkout@v2

- uses: pnpm/action-setup@v4
name: Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

Expand All @@ -31,5 +31,7 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'

- run: pnpm i --frozen-lockfile
- run: pnpm biome check . && pnpm test && pnpm build
- name: Install dependencies
run: pnpm install --recursive --frozen-lockfile

- run: pnpm check && pnpm test && pnpm build
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 6 additions & 4 deletions examples/package.json → apps/examples/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "typed-binary-examples",
"name": "@typed-binary/examples",
"scripts": {
"prepare": "cd .. && pnpm run build && cd examples/ && pnpm link ../",
"example:binaryMesh": "tsx binaryMesh/index.ts",
"example:customSchema": "tsx customSchema/index.ts",
"example:dog": "tsx dog/index.ts",
Expand All @@ -11,8 +10,11 @@
"example:recursiveTypes": "tsx recursiveTypes/index.ts",
"example:stateMachine": "tsx stateMachine/index.ts"
},
"dependencies": {
"typed-binary": "workspace:*"
},
"devDependencies": {
"tsx": "^4.7.1",
"typescript": "^5.3.3"
"tsx": "^4.16.2",
"typescript": "^5.5.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions apps/examples/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../tsconfig.base.json"
}
7 changes: 6 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@
"enabled": true
},
"files": {
"ignore": ["node_modules", "dist", "rollup.config.js", "tsconfig.test.json"]
"ignore": [
"node_modules",
"dist",
"tsconfig.test.json",
"tsconfig.base.json"
]
},
"linter": {
"enabled": true,
Expand Down
101 changes: 0 additions & 101 deletions examples/tsconfig.json

This file was deleted.

43 changes: 9 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,15 @@
{
"name": "typed-binary",
"version": "4.0.1",
"name": "typed-binary-monorepo",
"version": "0.0.0",
"description": "Describe binary structures with full TypeScript support. Encode and decode into pure JavaScript objects.",
"private": true,
"packageManager": "[email protected]+sha256.691fe176eea9a8a80df20e4976f3dfb44a04841ceb885638fe2a26174f81e65e",
"type": "module",
"main": "./dist/index.js",
"types": "./index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"import": "./dist/index.js",
"default": "./dist/index.cjs"
},
"./*": {
"types": "./*.d.ts",
"module": "./dist/*.js",
"import": "./dist/*.js",
"default": "./dist/*.cjs"
}
},
"scripts": {
"check": "biome check --write .",
"dev": "tsup --watch",
"build": "tsup",
"prepublishOnly": "pnpm check && pnpm build",
"dryPublish": "pnpm publish --dry-run",
"check": "biome check .",
"fix": "biome check --write .",
"test": "vitest run",
"build": "pnpm -r build",
"dev": "pnpm -r dev",
"dev:test": "vitest",
"ts-version": "tsc -v"
},
Expand All @@ -54,7 +36,6 @@
"deserialization",
"deserialize"
],
"files": ["README.md", "LICENSE", "dist"],
"author": "Iwo Plaza <[email protected]>",
"license": "MIT",
"devDependencies": {
Expand All @@ -63,16 +44,10 @@
"cypress": "^13.13.1",
"socket.io": "^4.7.5",
"socket.io-client": "^4.7.5",
"tsup": "^8.2.0",
"typescript": "^5.5.2",
"tsx": "^4.16.2",
"tsup": "8.1.0",
"vitest": "^1.6.0",
"typed-binary": "workspace:*"
},
"repository": {
"type": "git",
"url": "https://github.com/iwoplaza/typed-binary.git"
},
"bugs": {
"url": "https://github.com/iwoplaza/typed-binary/issues"
}
}
70 changes: 70 additions & 0 deletions packages/typed-binary/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"name": "typed-binary",
"version": "4.0.1",
"description": "Describe binary structures with full TypeScript support. Encode and decode into pure JavaScript objects.",
"packageManager": "[email protected]+sha256.691fe176eea9a8a80df20e4976f3dfb44a04841ceb885638fe2a26174f81e65e",
"type": "module",
"main": "./dist/index.js",
"types": "./index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"module": "./dist/index.js",
"import": "./dist/index.js",
"default": "./dist/index.cjs"
},
"./*": {
"types": "./*.d.ts",
"module": "./dist/*.js",
"import": "./dist/*.js",
"default": "./dist/*.cjs"
}
},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"prepublishOnly": "pnpm -w run check && pnpm -w run build",
"dryPublish": "pnpm publish --dry-run"
},
"keywords": [
"typescript",
"type",
"types",
"typed",
"binary",
"bin",
"data",
"structure",
"schema",
"backend",
"front-end",
"json",
"arraybuffer",
"buffer",
"encoding",
"decoding",
"serial",
"serialize",
"serialization",
"deserialization",
"deserialize"
],
"files": ["README.md", "LICENSE", "dist"],
"author": "Iwo Plaza <[email protected]>",
"license": "MIT",
"devDependencies": {
"@types/node": "^20.14.11",
"socket.io": "^4.7.5",
"socket.io-client": "^4.7.5",
"tsup": "8.1.0",
"typescript": "^5.5.2"
},
"repository": {
"type": "git",
"url": "https://github.com/iwoplaza/typed-binary.git"
},
"bugs": {
"url": "https://github.com/iwoplaza/typed-binary/issues"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 3 additions & 0 deletions packages/typed-binary/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../tsconfig.base.json"
}
File renamed without changes.
File renamed without changes.
Loading
Loading