From e4ac236f22ed8b9ef7a8059b9398fd35351fe516 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Fri, 24 May 2024 17:53:26 +0200 Subject: [PATCH] chore: use new performant 'type-check' for tools tagged libaries --- scripts/api-extractor/just.config.ts | 3 +++ scripts/api-extractor/package.json | 7 +++++-- scripts/babel/just.config.ts | 3 +++ scripts/babel/package.json | 7 +++++-- scripts/beachball/just.config.ts | 3 +++ scripts/beachball/package.json | 5 ++++- scripts/cypress/just.config.ts | 3 +++ scripts/cypress/package.json | 7 +++++-- scripts/dangerjs/just.config.ts | 3 +++ scripts/dangerjs/package.json | 5 ++++- scripts/executors/just.config.ts | 3 +++ scripts/executors/package.json | 5 ++++- scripts/fluentui-publish/just.config.ts | 3 +++ scripts/fluentui-publish/package.json | 5 ++++- scripts/generators/just.config.ts | 3 +++ scripts/generators/package.json | 5 ++++- scripts/github/just.config.ts | 3 +++ scripts/github/package.json | 7 +++++-- scripts/gulp/just.config.ts | 3 +++ scripts/gulp/package.json | 5 ++++- scripts/jest/just.config.ts | 3 +++ scripts/jest/package.json | 5 ++++- scripts/lint-staged/just.config.ts | 3 +++ scripts/lint-staged/package.json | 5 ++++- scripts/monorepo/just.config.ts | 3 +++ scripts/monorepo/package.json | 5 ++++- scripts/package-manager/just.config.ts | 3 +++ scripts/package-manager/package.json | 7 +++++-- scripts/perf-test-flamegrill/just.config.ts | 3 +++ scripts/perf-test-flamegrill/package.json | 5 ++++- scripts/prettier/just.config.ts | 3 +++ scripts/prettier/package.json | 5 ++++- scripts/projects-test/just.config.ts | 3 +++ scripts/projects-test/package.json | 5 ++++- scripts/puppeteer/just.config.ts | 3 +++ scripts/puppeteer/package.json | 7 +++++-- scripts/storybook/just.config.ts | 3 +++ scripts/storybook/package.json | 5 ++++- scripts/tasks/just.config.ts | 3 +++ scripts/tasks/package.json | 5 +++-- scripts/test-ssr/just.config.ts | 3 +++ scripts/test-ssr/package.json | 5 ++++- scripts/triage-bot/just.config.ts | 3 +++ scripts/triage-bot/package.json | 7 +++++-- scripts/ts-node/just.config.ts | 3 +++ scripts/ts-node/package.json | 7 +++++-- scripts/update-release-notes/just.config.ts | 3 +++ scripts/update-release-notes/package.json | 5 ++++- scripts/utils/just.config.ts | 3 +++ scripts/utils/package.json | 7 +++++-- scripts/webpack/just.config.ts | 3 +++ scripts/webpack/package.json | 5 ++++- tools/workspace-plugin/just.config.ts | 3 +++ tools/workspace-plugin/package.json | 8 +++++++- tsconfig.base.all.json | 4 ++-- yarn.lock | 2 +- 56 files changed, 203 insertions(+), 40 deletions(-) create mode 100644 scripts/api-extractor/just.config.ts create mode 100644 scripts/babel/just.config.ts create mode 100644 scripts/beachball/just.config.ts create mode 100644 scripts/cypress/just.config.ts create mode 100644 scripts/dangerjs/just.config.ts create mode 100644 scripts/executors/just.config.ts create mode 100644 scripts/fluentui-publish/just.config.ts create mode 100644 scripts/generators/just.config.ts create mode 100644 scripts/github/just.config.ts create mode 100644 scripts/gulp/just.config.ts create mode 100644 scripts/jest/just.config.ts create mode 100644 scripts/lint-staged/just.config.ts create mode 100644 scripts/monorepo/just.config.ts create mode 100644 scripts/package-manager/just.config.ts create mode 100644 scripts/perf-test-flamegrill/just.config.ts create mode 100644 scripts/prettier/just.config.ts create mode 100644 scripts/projects-test/just.config.ts create mode 100644 scripts/puppeteer/just.config.ts create mode 100644 scripts/storybook/just.config.ts create mode 100644 scripts/tasks/just.config.ts create mode 100644 scripts/test-ssr/just.config.ts create mode 100644 scripts/triage-bot/just.config.ts create mode 100644 scripts/ts-node/just.config.ts create mode 100644 scripts/update-release-notes/just.config.ts create mode 100644 scripts/utils/just.config.ts create mode 100644 scripts/webpack/just.config.ts create mode 100644 tools/workspace-plugin/just.config.ts diff --git a/scripts/api-extractor/just.config.ts b/scripts/api-extractor/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/api-extractor/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/api-extractor/package.json b/scripts/api-extractor/package.json index 9fb9a1cc4c8135..2e8b64188a6903 100644 --- a/scripts/api-extractor/package.json +++ b/scripts/api-extractor/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/babel/just.config.ts b/scripts/babel/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/babel/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/babel/package.json b/scripts/babel/package.json index ea74f8fb70bf0b..f16dbd1eab9c7d 100644 --- a/scripts/babel/package.json +++ b/scripts/babel/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/beachball/just.config.ts b/scripts/beachball/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/beachball/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/beachball/package.json b/scripts/beachball/package.json index a1bc631431ae88..900f6f2b02f05b 100644 --- a/scripts/beachball/package.json +++ b/scripts/beachball/package.json @@ -8,11 +8,14 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-github": "*", "@fluentui/scripts-monorepo": "*", "@fluentui/scripts-ts-node": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/cypress/just.config.ts b/scripts/cypress/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/cypress/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/cypress/package.json b/scripts/cypress/package.json index 0586fda1189c57..d79b670231045d 100644 --- a/scripts/cypress/package.json +++ b/scripts/cypress/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/dangerjs/just.config.ts b/scripts/dangerjs/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/dangerjs/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/dangerjs/package.json b/scripts/dangerjs/package.json index 30d815601f9b3c..dff93a75315e4d 100644 --- a/scripts/dangerjs/package.json +++ b/scripts/dangerjs/package.json @@ -8,10 +8,13 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*", "@fluentui/scripts-utils": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/executors/just.config.ts b/scripts/executors/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/executors/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/executors/package.json b/scripts/executors/package.json index 28f29ec7cc3122..2d1932d29f4fcd 100644 --- a/scripts/executors/package.json +++ b/scripts/executors/package.json @@ -8,11 +8,14 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-utils": "*", "@fluentui/scripts-monorepo": "*", "@fluentui/scripts-prettier": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/fluentui-publish/just.config.ts b/scripts/fluentui-publish/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/fluentui-publish/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/fluentui-publish/package.json b/scripts/fluentui-publish/package.json index 97ae2abb08ae4b..4f6781d05d4012 100644 --- a/scripts/fluentui-publish/package.json +++ b/scripts/fluentui-publish/package.json @@ -10,9 +10,12 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/generators/just.config.ts b/scripts/generators/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/generators/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/generators/package.json b/scripts/generators/package.json index d49423bff685b8..0d96beadd26db0 100644 --- a/scripts/generators/package.json +++ b/scripts/generators/package.json @@ -8,10 +8,13 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js --ignore-pattern plop-templates-* .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*", "@fluentui/scripts-projects-test": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/github/just.config.ts b/scripts/github/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/github/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/github/package.json b/scripts/github/package.json index 299723d60f2198..58804ae7418c72 100644 --- a/scripts/github/package.json +++ b/scripts/github/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/gulp/just.config.ts b/scripts/gulp/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/gulp/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/gulp/package.json b/scripts/gulp/package.json index 036d7e9e1587d7..8486bce659c634 100644 --- a/scripts/gulp/package.json +++ b/scripts/gulp/package.json @@ -8,7 +8,7 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*", @@ -17,5 +17,8 @@ "@fluentui/scripts-puppeteer": "*", "@fluentui/scripts-babel": "*", "@fluentui/scripts-projects-test": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/jest/just.config.ts b/scripts/jest/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/jest/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/jest/package.json b/scripts/jest/package.json index da1ecf67f30947..afdbf95f413a14 100644 --- a/scripts/jest/package.json +++ b/scripts/jest/package.json @@ -8,10 +8,13 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*", "@fluentui/scripts-utils": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/lint-staged/just.config.ts b/scripts/lint-staged/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/lint-staged/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/lint-staged/package.json b/scripts/lint-staged/package.json index 6201ad5a1d5583..8a45ffd684a546 100644 --- a/scripts/lint-staged/package.json +++ b/scripts/lint-staged/package.json @@ -8,9 +8,12 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/monorepo/just.config.ts b/scripts/monorepo/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/monorepo/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/monorepo/package.json b/scripts/monorepo/package.json index 14f6173dce95ed..2b95a9cb267fdd 100644 --- a/scripts/monorepo/package.json +++ b/scripts/monorepo/package.json @@ -8,9 +8,12 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-utils": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/package-manager/just.config.ts b/scripts/package-manager/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/package-manager/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/package-manager/package.json b/scripts/package-manager/package.json index 2e7928990bc885..a06319730eb09e 100644 --- a/scripts/package-manager/package.json +++ b/scripts/package-manager/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/perf-test-flamegrill/just.config.ts b/scripts/perf-test-flamegrill/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/perf-test-flamegrill/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/perf-test-flamegrill/package.json b/scripts/perf-test-flamegrill/package.json index 1edc441192a4f4..3451d615baacc0 100644 --- a/scripts/perf-test-flamegrill/package.json +++ b/scripts/perf-test-flamegrill/package.json @@ -8,7 +8,7 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "peerDependencies": { "@types/react": ">=16.8.0 <19.0.0", @@ -16,5 +16,8 @@ "react": ">=16.8.0 <19.0.0", "react-dom": ">=16.8.0 <19.0.0", "webpack": "^5.75.0" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/prettier/just.config.ts b/scripts/prettier/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/prettier/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/prettier/package.json b/scripts/prettier/package.json index 75e0bd645066d3..e461cf7e9760c7 100644 --- a/scripts/prettier/package.json +++ b/scripts/prettier/package.json @@ -8,9 +8,12 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/projects-test/just.config.ts b/scripts/projects-test/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/projects-test/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/projects-test/package.json b/scripts/projects-test/package.json index a1a0f399dded6c..5fd0217c589f9d 100644 --- a/scripts/projects-test/package.json +++ b/scripts/projects-test/package.json @@ -8,11 +8,14 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-utils": "*", "@fluentui/scripts-puppeteer": "*", "@fluentui/scripts-monorepo": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/puppeteer/just.config.ts b/scripts/puppeteer/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/puppeteer/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/puppeteer/package.json b/scripts/puppeteer/package.json index f291bcace4db2a..ff03c81febb304 100644 --- a/scripts/puppeteer/package.json +++ b/scripts/puppeteer/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/storybook/just.config.ts b/scripts/storybook/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/storybook/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/storybook/package.json b/scripts/storybook/package.json index 708b97b2b442dc..0d86a3971c20ef 100644 --- a/scripts/storybook/package.json +++ b/scripts/storybook/package.json @@ -8,9 +8,12 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/tasks/just.config.ts b/scripts/tasks/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/tasks/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/tasks/package.json b/scripts/tasks/package.json index a994fd70eb5501..5e8ec8dd4c1272 100644 --- a/scripts/tasks/package.json +++ b/scripts/tasks/package.json @@ -8,12 +8,13 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*", "@fluentui/scripts-utils": "*", "@fluentui/scripts-prettier": "*", "flamegrill": "0.2.0" - } + }, + "devDependencies": {} } diff --git a/scripts/test-ssr/just.config.ts b/scripts/test-ssr/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/test-ssr/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/test-ssr/package.json b/scripts/test-ssr/package.json index 060f8751eda3ae..3175eb33147384 100644 --- a/scripts/test-ssr/package.json +++ b/scripts/test-ssr/package.json @@ -10,10 +10,13 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-puppeteer": "*", "@fluentui/scripts-ts-node": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/triage-bot/just.config.ts b/scripts/triage-bot/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/triage-bot/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/triage-bot/package.json b/scripts/triage-bot/package.json index 1829964422bd1c..d3f347d80d179b 100644 --- a/scripts/triage-bot/package.json +++ b/scripts/triage-bot/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/ts-node/just.config.ts b/scripts/ts-node/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/ts-node/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/ts-node/package.json b/scripts/ts-node/package.json index 6f7f9b18c49c6f..9ed1095d46e247 100644 --- a/scripts/ts-node/package.json +++ b/scripts/ts-node/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/update-release-notes/just.config.ts b/scripts/update-release-notes/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/update-release-notes/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/update-release-notes/package.json b/scripts/update-release-notes/package.json index be0ecfd7814677..1a3a1540add090 100644 --- a/scripts/update-release-notes/package.json +++ b/scripts/update-release-notes/package.json @@ -8,10 +8,13 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-github": "*", "@fluentui/scripts-monorepo": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/scripts/utils/just.config.ts b/scripts/utils/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/utils/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/utils/package.json b/scripts/utils/package.json index 462171a6d6b6b8..ebbc5dd601dda8 100644 --- a/scripts/utils/package.json +++ b/scripts/utils/package.json @@ -8,7 +8,10 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, - "dependencies": {} + "dependencies": {}, + "devDependencies": { + "@fluentui/scripts-tasks": "*" + } } diff --git a/scripts/webpack/just.config.ts b/scripts/webpack/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/scripts/webpack/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/scripts/webpack/package.json b/scripts/webpack/package.json index a29c602cf9c1d3..dfc8d2aee94838 100644 --- a/scripts/webpack/package.json +++ b/scripts/webpack/package.json @@ -8,10 +8,13 @@ "format:check": "yarn format -c", "lint": "eslint --ext .ts,.js .", "test": "jest --passWithNoTests", - "type-check": "tsc -b tsconfig.json" + "type-check": "just-scripts type-check" }, "dependencies": { "@fluentui/scripts-monorepo": "*", "@fluentui/scripts-utils": "*" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/tools/workspace-plugin/just.config.ts b/tools/workspace-plugin/just.config.ts new file mode 100644 index 00000000000000..b10db31a6aca51 --- /dev/null +++ b/tools/workspace-plugin/just.config.ts @@ -0,0 +1,3 @@ +import { preset } from '@fluentui/scripts-tasks'; + +preset(); diff --git a/tools/workspace-plugin/package.json b/tools/workspace-plugin/package.json index 51cc71fe73fae4..46d22fe7ebf15d 100644 --- a/tools/workspace-plugin/package.json +++ b/tools/workspace-plugin/package.json @@ -6,7 +6,13 @@ "generators": "./generators.json", "scripts": { "test": "nx run @fluentui/workspace-plugin:test", - "type-check": "nx run @fluentui/workspace-plugin:type-check", + "type-check": "just-scripts type-check", "lint": "eslint --ext .ts,.js,.json ." + }, + "dependencies": { + "@nx/devkit": "^17.3.2" + }, + "devDependencies": { + "@fluentui/scripts-tasks": "*" } } diff --git a/tsconfig.base.all.json b/tsconfig.base.all.json index 78b29ead1a1fb1..0c624462d925e2 100644 --- a/tsconfig.base.all.json +++ b/tsconfig.base.all.json @@ -151,6 +151,7 @@ "@fluentui/react-storybook-addon-export-to-sandbox": [ "packages/react-components/react-storybook-addon-export-to-sandbox/src/index.ts" ], + "@fluentui/react-swatch-picker": ["packages/react-components/react-swatch-picker/src/index.ts"], "@fluentui/react-switch": ["packages/react-components/react-switch/src/index.ts"], "@fluentui/react-table": ["packages/react-components/react-table/src/index.ts"], "@fluentui/react-tabs": ["packages/react-components/react-tabs/src/index.ts"], @@ -171,8 +172,7 @@ "@fluentui/react-virtualizer": ["packages/react-components/react-virtualizer/src/index.ts"], "@fluentui/theme-designer": ["packages/react-components/theme-designer/src/index.ts"], "@fluentui/tokens": ["packages/tokens/src/index.ts"], - "@fluentui/workspace-plugin": ["tools/workspace-plugin/src/index.ts"], - "@fluentui/react-swatch-picker": ["packages/react-components/react-swatch-picker/src/index.ts"] + "@fluentui/workspace-plugin": ["tools/workspace-plugin/src/index.ts"] } } } diff --git a/yarn.lock b/yarn.lock index b127c1f3db60f3..40328bf4374eef 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2824,7 +2824,7 @@ dependencies: "@nx/workspace" "17.3.2" -"@nx/devkit@17.3.2": +"@nx/devkit@17.3.2", "@nx/devkit@^17.3.2": version "17.3.2" resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-17.3.2.tgz#c10b3e5f9bc642881c24aa2e3878ca4290994a80" integrity sha512-gbOIhwrZKCSSFFbh6nE6LLCvAU7mhSdBSnRiS14YBwJJMu4CRJ0IcaFz58iXqGWZefMivKtkNFtx+zqwUC4ziw==