diff --git a/package.json b/package.json index 43b21e7fb..74b28f809 100644 --- a/package.json +++ b/package.json @@ -26,20 +26,21 @@ "lint:eslint": "yarn eslint . --cache", "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write && yarn lint:dependencies:fix", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path .gitignore", + "lint:ts": "yarn workspaces foreach --all --parallel --verbose run lint:ts", "postinstall": "simple-git-hooks", "prepack": "./scripts/prepack.sh", "test": "yarn workspaces foreach --all --parallel --verbose run test", - "test:ts": "yarn workspaces foreach --all --parallel --verbose run test:ts", "test:clean": "yarn workspaces foreach --all --parallel --verbose run test:clean && yarn test", "test:verbose": "yarn workspaces foreach --all --parallel --verbose run test:verbose", "why:batch": "./scripts/why-batch.sh" }, "simple-git-hooks": { - "pre-commit": "yarn lint-staged && yarn test:ts && yarn dedupe --check" + "pre-commit": "yarn lint-staged && yarn dedupe --check" }, "lint-staged": { "*.{js,mjs,cjs,ts,mts,cts}": [ - "eslint --fix" + "eslint --fix", + "bash -c 'yarn lint:ts'" ], "!(CHANGELOG).{json,html,md,yml}": [ "prettier --write" diff --git a/packages/errors/package.json b/packages/errors/package.json index da92c1d64..6ac7532b9 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -34,9 +34,9 @@ "lint:eslint": "eslint . --cache", "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore", + "lint:ts": "tsc --project tsconfig.test.json --noEmit", "publish:preview": "yarn npm publish --tag preview", "test": "vitest run --config vitest.config.ts", - "test:ts": "tsc --project tsconfig.test.json --noEmit", "test:clean": "yarn test --no-cache --coverage.clean", "test:dev": "yarn test --coverage false", "test:verbose": "yarn test --reporter verbose", diff --git a/packages/extension/package.json b/packages/extension/package.json index f221296bb..74b414df5 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -23,10 +23,10 @@ "lint:eslint": "eslint . --cache", "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore", + "lint:ts": "tsc --project tsconfig.test.json --noEmit", "publish:preview": "yarn npm publish --tag preview", "start": "yarn build:vite:dev --watch", "test": "vitest run --config vitest.config.ts", - "test:ts": "tsc --project tsconfig.test.json --noEmit", "test:build": "node ./test/build-tests.mjs", "test:clean": "yarn test --no-cache --coverage.clean", "test:dev": "yarn test --coverage false", diff --git a/packages/kernel/package.json b/packages/kernel/package.json index 2c3ba8cc1..2aa932c35 100644 --- a/packages/kernel/package.json +++ b/packages/kernel/package.json @@ -34,9 +34,9 @@ "lint:eslint": "eslint . --cache", "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore", + "lint:ts": "tsc --project tsconfig.test.json --noEmit", "publish:preview": "yarn npm publish --tag preview", "test": "vitest run --config vitest.config.ts", - "test:ts": "tsc --project tsconfig.test.json --noEmit", "test:clean": "yarn test --no-cache --coverage.clean", "test:dev": "yarn test --coverage false", "test:verbose": "yarn test --reporter verbose", diff --git a/packages/shims/package.json b/packages/shims/package.json index 538f4f175..6af0eab0f 100644 --- a/packages/shims/package.json +++ b/packages/shims/package.json @@ -28,9 +28,9 @@ "lint:eslint": "eslint . --cache", "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore", + "lint:ts": "tsc --project tsconfig.test.json --noEmit", "publish:preview": "yarn npm publish --tag preview", "test": "vitest run --config vitest.config.ts", - "test:ts": "tsc --project tsconfig.test.json --noEmit", "test:clean": "yarn test --no-cache --coverage.clean", "test:dev": "yarn test --coverage false", "test:verbose": "yarn test --reporter verbose", diff --git a/packages/streams/package.json b/packages/streams/package.json index ecf070e3d..045803381 100644 --- a/packages/streams/package.json +++ b/packages/streams/package.json @@ -38,9 +38,9 @@ "lint:eslint": "eslint . --cache", "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore", + "lint:ts": "tsc --project tsconfig.test.json --noEmit", "publish:preview": "yarn npm publish --tag preview", "test": "vitest run --config vitest.config.ts", - "test:ts": "tsc --project tsconfig.test.json --noEmit", "test:clean": "yarn test --no-cache --coverage.clean", "test:dev": "yarn test --coverage false", "test:verbose": "yarn test --reporter verbose", diff --git a/packages/utils/package.json b/packages/utils/package.json index 30dd0f373..50dc82608 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -34,9 +34,9 @@ "lint:eslint": "eslint . --cache", "lint:fix": "yarn constraints --fix && yarn lint:eslint --fix && yarn lint:misc --write", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore", + "lint:ts": "tsc --project tsconfig.test.json --noEmit", "publish:preview": "yarn npm publish --tag preview", "test": "vitest run --config vitest.config.ts", - "test:ts": "tsc --project tsconfig.test.json --noEmit", "test:clean": "yarn test --no-cache --coverage.clean", "test:dev": "yarn test --coverage false", "test:verbose": "yarn test --reporter verbose", diff --git a/yarn.config.cjs b/yarn.config.cjs index 06e1a0523..00c304ddc 100644 --- a/yarn.config.cjs +++ b/yarn.config.cjs @@ -233,7 +233,7 @@ module.exports = defineConfig({ ); expectWorkspaceField( workspace, - 'scripts.test:ts', + 'scripts.lint:ts', 'tsc --project tsconfig.test.json --noEmit', ); expectWorkspaceField(