Skip to content

Commit

Permalink
Fix generator-sprotty not deleting *.tsbuildinfo, remove more package…
Browse files Browse the repository at this point in the history
… level scripts
  • Loading branch information
kaisalmen committed Nov 10, 2023
1 parent e697a65 commit 975fb60
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 27 deletions.
3 changes: 2 additions & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
},
"scripts": {
"prepare": "yarn run build",
"build": "webpack && tsc",
"compile": "tsc -b tsconfig.json",
"build": "webpack && npm run compile",
"watch": "yarn run watch:browser",
"watch:browser": "webpack --watch",
"watch:server": "tsc -w",
Expand Down
1 change: 1 addition & 0 deletions examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"reflect-metadata",
"webpack-env"
],
"composite": false,
"declaration": false,
"declarationMap": false
},
Expand Down
7 changes: 2 additions & 5 deletions packages/generator-sprotty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@
"yeoman-test": "^7.4.0"
},
"scripts": {
"clean": "shx rm -fr app",
"build": "tsc --skipLibCheck",
"watch": "tsc --watch --skipLibCheck",
"clean": "shx rm -fr app *.tsbuildinfo",
"run": "yo sprotty",
"debug": "npx --node-arg=--inspect yo sprotty",
"test": "echo \"No tests defined.\""
"debug": "npx --node-arg=--inspect yo sprotty"
},
"files": [
"app",
Expand Down
3 changes: 1 addition & 2 deletions packages/generator-sprotty/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "app",
"composite": true
"outDir": "app"
},
"include": [
"src"
Expand Down
5 changes: 1 addition & 4 deletions packages/sprotty-elk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
"inversify": "^6.0.1"
},
"scripts": {
"clean": "shx rm -fr lib artifacts *.tsbuildinfo",
"build": "tsc -p ./tsconfig.json",
"test": "vitest run --config ../../vite.config.ts",
"watch": "tsc -w -p ./tsconfig.json"
"clean": "shx rm -fr lib artifacts *.tsbuildinfo"
},
"files": [
"lib",
Expand Down
3 changes: 1 addition & 2 deletions packages/sprotty-elk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"outDir": "lib",
"types": [
"node"
],
"composite": true
]
},
"include": [
"src"
Expand Down
5 changes: 1 addition & 4 deletions packages/sprotty-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@
},

"scripts": {
"clean": "shx rm -fr lib artifacts *.tsbuildinfo",
"build": "tsc -p ./tsconfig.json",
"test": "vitest run --config ../../vite.config.ts",
"watch": "tsc -w -p ./tsconfig.json"
"clean": "shx rm -fr lib artifacts *.tsbuildinfo"
},
"files": [
"lib",
Expand Down
3 changes: 1 addition & 2 deletions packages/sprotty-protocol/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
"outDir": "lib"
},
"include": [
"src"
Expand Down
5 changes: 1 addition & 4 deletions packages/sprotty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
"snabbdom-to-html": "^7.1.0"
},
"scripts": {
"clean": "shx rm -fr lib artifacts *.tsbuildinfo",
"build": "tsc -p ./tsconfig.json",
"test": "vitest run --config ../../vite.config.ts",
"watch": "tsc -w -p ./tsconfig.json"
"clean": "shx rm -fr lib artifacts *.tsbuildinfo"
},
"files": [
"lib",
Expand Down
3 changes: 1 addition & 2 deletions packages/sprotty/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"extends": "../../tsconfig.json",
"compilerOptions": {
"rootDir": "src",
"outDir": "lib",
"composite": true
"outDir": "lib"
},
"include": [
"src"
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"esModuleInterop": true,
"jsx": "react"
"jsx": "react",
"composite": true
},
"include": [
"**/src/**/*.ts",
Expand Down

0 comments on commit 975fb60

Please sign in to comment.