Skip to content

Commit

Permalink
Merge pull request #46 from Mach30/fix-tsc-build-in-project-root
Browse files Browse the repository at this point in the history
force tsc to recompile even if source files are unchanged
  • Loading branch information
j-simmons-phd authored Sep 13, 2024
2 parents 5f87cd9 + e6fbc13 commit aa2f530
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
},
"repository": "https://github.com/Mach30/m30pm",
"scripts": {
"build": "npm run build -w packages/m30pm-lib-common && npm run build -w packages/m30pm-lib-fs && npm run build -w packages/m30pm-lib-cli && shx rm -rf dist && tsc -b",
"clean": "shx rm -rf dist",
"build": "npm run clean && tsc -b --force",
"buildAll": "npm run build -w packages/m30pm-lib-common && npm run build -w packages/m30pm-lib-fs && npm run build -w packages/m30pm-lib-cli && npm run build",
"lint": "eslint . --ext .ts",
"postpack": "shx rm -f oclif.manifest.json",
"posttest": "npm run lint",
Expand Down
3 changes: 2 additions & 1 deletion packages/m30pm-lib-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"/dist"
],
"scripts": {
"build": "shx rm -rf dist/ && tsc -b",
"clean": "shx rm -rf dist",
"build": "npm run clean && tsc -b --force",
"test": "nyc mocha --forbid-only"
},
"author": "Mach 30",
Expand Down
3 changes: 2 additions & 1 deletion packages/m30pm-lib-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"/dist"
],
"scripts": {
"build": "shx rm -rf dist/ && tsc -b && shx cp -r src/resources/ dist/",
"clean": "shx rm -rf dist",
"build": "npm run clean && tsc -b --force && shx cp -r src/resources/ dist/",
"test": "nyc mocha --forbid-only"
},
"author": "Mach 30",
Expand Down
3 changes: 2 additions & 1 deletion packages/m30pm-lib-fs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"/dist"
],
"scripts": {
"build": "shx rm -rf dist/ && tsc -b",
"clean": "shx rm -rf dist",
"build": "npm run clean && tsc -b --force",
"test": "nyc mocha --timeout 10000 --forbid-only"
},
"author": "Mach 30",
Expand Down

0 comments on commit aa2f530

Please sign in to comment.