Skip to content

Commit

Permalink
fix(common,firmware-protocol,firmware-protocol-debugger-shared,firmwa…
Browse files Browse the repository at this point in the history
…re-protocol-debugger-utils): declaration maps
  • Loading branch information
TheDevMinerTV committed Jun 2, 2024
1 parent de1562a commit 2aef2cb
Show file tree
Hide file tree
Showing 18 changed files with 452 additions and 207 deletions.
8 changes: 8 additions & 0 deletions .changeset/polite-chicken-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@slimevr/firmware-protocol-debugger-shared': patch
'@slimevr/firmware-protocol-debugger-utils': patch
'@slimevr/firmware-protocol': patch
'@slimevr/common': patch
---

fixed declaration maps, allowing to see the source code instead of just types
3 changes: 2 additions & 1 deletion apps/firmware-protocol-debugger-gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
"dev:electron": "cross-env ELECTRON_START_URL=http://localhost:5173 electron .",
"build": "vite build && tsc -p backend/tsconfig.json && electron-builder --publish never",
"dist": "electron-builder",
"pack": "electron-builder --dir"
"pack": "electron-builder --dir",
"clean": "rimraf dist build"
},
"engines": {
"node": ">=16.0.0"
Expand Down
3 changes: 2 additions & 1 deletion apps/firmware-protocol-debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
},
"scripts": {
"dev": "concurrently \"tsc -w\" \"nodemon .\"",
"build": "tsc"
"build": "tsc",
"clean": "rimraf dist"
},
"engines": {
"node": ">=16.0.0"
Expand Down
3 changes: 2 additions & 1 deletion apps/serial-to-tracker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
},
"scripts": {
"dev": "concurrently \"tsc -w\" \"nodemon .\"",
"build": "tsc"
"build": "tsc",
"clean": "rimraf dist"
},
"engines": {
"node": ">=16.0.0"
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@
"release": "npm run build && changeset publish"
},
"devDependencies": {
"@babel/cli": "^7.24.6",
"@babel/core": "^7.24.6",
"@babel/plugin-transform-export-namespace-from": "^7.24.6",
"@babel/plugin-transform-modules-commonjs": "^7.24.6",
"@changesets/cli": "^2.26.2",
"@slimevr/eslint-config": "workspace:*",
"prettier": "^2.8.8",
"turbo": "1.13.3"
"rimraf": "^5.0.1",
"turbo": "1.13.3",
"typescript": "5.4.5"
},
"engines": {
"node": ">=16.0.0"
Expand Down
1 change: 0 additions & 1 deletion packages/common/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.turbo
CHANGELOG.md
tsconfig.json
src
17 changes: 10 additions & 7 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@
"name": "@slimevr/common",
"version": "0.1.0",
"license": "(MIT OR Apache-2.0)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"main": "dist/cjs/index.js",
"types": "dist/dts/index.d.ts",
"module": "dist/esm/index.js",
"type": "module",
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc",
"build:cjs": "babel dist/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir dist/cjs --source-maps",
"prepack": "pnpm build",
"dev": "pnpm build -- --watch"
"dev": "pnpm build -- --watch",
"clean": "rimraf dist"
},
"devDependencies": {
"@slimevr/tsconfig": "workspace:*",
"@types/node": "^18.17.2",
"tsup": "^7.2.0"
"@types/node": "^18.17.2"
}
}
6 changes: 3 additions & 3 deletions packages/common/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "@slimevr/tsconfig/node.json",
"extends": "@slimevr/tsconfig/node-lib.json",
"include": ["src/**/*.ts"],
"exclude": ["dist", "build", "node_modules"],
"compilerOptions": {
"target": "ES2016",
"outDir": "dist"
"outDir": "dist/esm",
"declarationDir": "dist/dts"
}
}
17 changes: 10 additions & 7 deletions packages/firmware-protocol-debugger-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
{
"name": "@slimevr/firmware-protocol-debugger-shared",
"version": "0.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"main": "dist/cjs/index.js",
"types": "dist/dts/index.d.ts",
"module": "dist/esm/index.js",
"type": "module",
"private": true,
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "pnpm run build -- -w src"
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc",
"build:cjs": "babel dist/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir dist/cjs --source-maps",
"dev": "pnpm run build -- -w src",
"clean": "rimraf dist"
},
"dependencies": {
"@slimevr/firmware-protocol": "workspace:*"
},
"devDependencies": {
"@slimevr/tsconfig": "workspace:*",
"@types/node": "^18.17.2",
"tsup": "^7.2.0"
"@types/node": "^18.17.2"
}
}
6 changes: 3 additions & 3 deletions packages/firmware-protocol-debugger-shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "@slimevr/tsconfig/node.json",
"extends": "@slimevr/tsconfig/node-lib.json",
"include": ["src/**/*.ts"],
"exclude": ["dist", "build", "node_modules"],
"compilerOptions": {
"target": "ES2016",
"outDir": "dist"
"outDir": "dist/esm",
"declarationDir": "dist/dts"
}
}
17 changes: 10 additions & 7 deletions packages/firmware-protocol-debugger-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
{
"name": "@slimevr/firmware-protocol-debugger-utils",
"version": "0.0.7",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"main": "dist/cjs/index.js",
"types": "dist/dts/index.d.ts",
"module": "dist/esm/index.js",
"type": "module",
"private": true,
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"dev": "pnpm run build -- -w src"
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc",
"build:cjs": "babel dist/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir dist/cjs --source-maps",
"dev": "pnpm run build -- -w src",
"clean": "rimraf dist"
},
"dependencies": {
"@slimevr/common": "workspace:*",
Expand All @@ -17,7 +21,6 @@
},
"devDependencies": {
"@slimevr/tsconfig": "workspace:*",
"@types/node": "^18.17.2",
"tsup": "^7.2.0"
"@types/node": "^18.17.2"
}
}
6 changes: 3 additions & 3 deletions packages/firmware-protocol-debugger-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "@slimevr/tsconfig/node.json",
"extends": "@slimevr/tsconfig/node-lib.json",
"include": ["src/**/*.ts"],
"exclude": ["dist", "build", "node_modules"],
"compilerOptions": {
"target": "ES2020",
"outDir": "dist"
"outDir": "dist/esm",
"declarationDir": "dist/dts"
}
}
1 change: 0 additions & 1 deletion packages/firmware-protocol/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.turbo
CHANGELOG.md
tsconfig.json
src
15 changes: 8 additions & 7 deletions packages/firmware-protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "@slimevr/firmware-protocol",
"version": "0.6.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"module": "dist/index.mjs",
"main": "dist/cjs/index.js",
"types": "dist/dts/index.d.ts",
"module": "dist/esm/index.js",
"type": "module",
"license": "(MIT OR Apache-2.0)",
"author": {
"name": "DevMiner",
Expand All @@ -20,7 +21,9 @@
"access": "public"
},
"scripts": {
"build": "tsup src/index.ts --format cjs,esm --dts",
"build": "pnpm run build:esm && pnpm run build:cjs",
"build:esm": "tsc",
"build:cjs": "babel dist/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir dist/cjs --source-maps",
"prepack": "pnpm build",
"watch": "pnpm build -- --watch",
"clean": "rimraf dist"
Expand All @@ -30,8 +33,6 @@
},
"devDependencies": {
"@slimevr/tsconfig": "workspace:*",
"@types/node": "^18.17.2",
"rimraf": "^5.0.1",
"tsup": "^7.2.0"
"@types/node": "^18.17.2"
}
}
5 changes: 3 additions & 2 deletions packages/firmware-protocol/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"extends": "@slimevr/tsconfig/node.json",
"extends": "@slimevr/tsconfig/node-lib.json",
"include": ["src/**/*.ts"],
"exclude": ["dist", "build", "node_modules"],
"compilerOptions": {
"outDir": "dist"
"outDir": "dist/esm",
"declarationDir": "dist/dts"
}
}
10 changes: 10 additions & 0 deletions packages/tsconfig/node-lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./base.json",
"display": "Node.JS",
"compilerOptions": {
"target": "ES2020",
"module": "ES2020",
"moduleResolution": "Node"
}
}
Loading

0 comments on commit 2aef2cb

Please sign in to comment.