Skip to content

Commit

Permalink
Use incremental build (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdala authored Dec 20, 2024
1 parent e920fc6 commit 1e4e018
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 deletions.
2 changes: 1 addition & 1 deletion assert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "Abdala Cerqueira",
"license": "LGPL-3.0-or-later",
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc --build --verbose",
"test": "tsx --test test/*.test.ts",
"test:only": "tsx --test --test-only test/*.test.ts",
"test:coverage": "tsx --experimental-test-coverage --test test/*.test.ts"
Expand Down
2 changes: 1 addition & 1 deletion dtc-aws-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@cgauge/type-guard": "^0.12.0"
},
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc --build --verbose",
"test": "AWS_MAX_ATTEMPTS=0 AWS_REGION=eu-west-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test tsx --test test/*.test.ts",
"test:only": "AWS_MAX_ATTEMPTS=0 AWS_REGION=eu-west-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test tsx --test --test-only test/*.test.ts",
"test:coverage": "AWS_MAX_ATTEMPTS=0 AWS_REGION=eu-west-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test tsx --experimental-test-coverage --test test/*.test.ts"
Expand Down
2 changes: 1 addition & 1 deletion dtc-graphql-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"graphql-request": "^7.1.2"
},
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc --build --verbose",
"test": "tsx --test test/*.test.ts",
"test:only": "tsx --test --test-only test/*.test.ts",
"test:coverage": "tsx --experimental-test-coverage --test test/*.test.ts"
Expand Down
2 changes: 1 addition & 1 deletion dtc-mysql-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"type-assurance": "^1.5.1"
},
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc --build --verbose",
"test": "tsx --test test/*.test.ts",
"test:only": "tsx --test --test-only test/*.test.ts",
"test:coverage": "tsx --experimental-test-coverage --test test/*.test.ts"
Expand Down
2 changes: 1 addition & 1 deletion dtc-playwright-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@playwright/test": "^1.47.0"
},
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc --build --verbose",
"test": "tsx --test test/*.test.ts",
"test:only": "tsx --test --test-only test/*.test.ts",
"test:coverage": "tsx --experimental-test-coverage --test test/*.test.ts"
Expand Down
2 changes: 1 addition & 1 deletion dtc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"nock": "^14.0.0-beta.15"
},
"scripts": {
"build": "rm -rf dist && tsc && chmod +x ./dist/cli.js",
"build": "tsc --build --verbose && chmod +x ./dist/cli.js",
"test": "tsx --test test/*.test.ts test/**/*.test.ts",
"test:only": "tsx --test --test-only test/*.test.ts test/**/*.test.ts",
"test:single": "tsx --test",
Expand Down
2 changes: 1 addition & 1 deletion nock-aws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@aws-sdk/client-translate": "^3.645.0"
},
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc --build --verbose",
"test": "AWS_MAX_ATTEMPTS=0 AWS_REGION=eu-west-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test tsx --test test/*.test.ts",
"test:only": "AWS_MAX_ATTEMPTS=0 AWS_REGION=eu-west-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test tsx --test --test-only test/*.test.ts",
"test:coverage": "AWS_MAX_ATTEMPTS=0 AWS_REGION=eu-west-1 AWS_ACCESS_KEY_ID=test AWS_SECRET_ACCESS_KEY=test tsx --experimental-test-coverage --test test/*.test.ts"
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@
"yaml"
],
"scripts": {
"build": "npm run build --workspaces --if-present",
"test": "npm run test --workspaces --if-present",
"test:only": "npm run test:only --workspaces --if-present"
"clean": "find . -name 'dist' -type d -prune -not -path './node_modules/*' -exec rm -rf '{}' +",
"dependencies": "echo assert type-guard dtc | xargs -n1 npm run build --if-present --workspace",
"build": "npm run dependencies && npm query .workspace | node -p 'JSON.parse(fs.readFileSync(0)).map(ws => ws.name).join(\"\\n\")' | xargs -I {} -P 0 npm run build --if-present --workspace '{}'",
"test": "npm query .workspace | node -p 'JSON.parse(fs.readFileSync(0)).map(ws => ws.name).join(\"\\n\")' | xargs -I {} -P 0 npm run test --if-present --workspace '{}'"
},
"devDependencies": {
"@types/node": "^20.0.0",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"esModuleInterop": true
"esModuleInterop": true,
"incremental": true,
},
"exclude": ["node_modules", "**/dist/**/*", "**/test/*"]
}
2 changes: 1 addition & 1 deletion type-guard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"type-assurance": "^1.6.1"
},
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc --build --verbose",
"test": "tsx --test test/*.test.ts",
"test:only": "tsx --test --test-only test/*.test.ts",
"test:coverage": "tsx --experimental-test-coverage --test test/*.test.ts"
Expand Down
2 changes: 1 addition & 1 deletion yaml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@faker-js/faker": "^9.3.0"
},
"scripts": {
"build": "rm -rf dist && tsc",
"build": "tsc --build --verbose",
"test": "tsx --env-file .env --test test/*.test.ts",
"test:only": "tsx --env-file .env --test --test-only test/*.test.ts",
"test:coverage": "tsx --experimental-test-coverage --test test/*.test.ts"
Expand Down

0 comments on commit 1e4e018

Please sign in to comment.