diff --git a/azure/packages/azure-local-service/package.json b/azure/packages/azure-local-service/package.json index 2b5eabed079d..d35e57e04c18 100644 --- a/azure/packages/azure-local-service/package.json +++ b/azure/packages/azure-local-service/package.json @@ -13,13 +13,13 @@ "type": "module", "bin": "index.js", "scripts": { - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "biome-check": "biome check .", + "biome-format": "biome check . --write", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish index.js", "eslint:fix": "eslint --format stylish index.js --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "start": "pm2 start -n azure-local-service index.js", diff --git a/azure/packages/azure-service-utils/package.json b/azure/packages/azure-service-utils/package.json index 71103ba420e5..393e2e2e5968 100644 --- a/azure/packages/azure-service-utils/package.json +++ b/azure/packages/azure-service-utils/package.json @@ -48,41 +48,41 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "echo \"Error: no test specified\" && exit 1", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/examples/apps/ai-collab/package.json b/examples/apps/ai-collab/package.json index 228231849f48..c1d2aca08663 100644 --- a/examples/apps/ai-collab/package.json +++ b/examples/apps/ai-collab/package.json @@ -14,16 +14,16 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib next-env.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "start": "next dev", diff --git a/examples/apps/blobs/package.json b/examples/apps/blobs/package.json index a9c79e5d85cf..b90b82b540e1 100644 --- a/examples/apps/blobs/package.json +++ b/examples/apps/blobs/package.json @@ -15,18 +15,19 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "check:prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "format:prettier": "prettier --write . --cache --ignore-path ../../../.prettierignore", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -37,7 +38,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/apps/collaborative-textarea/package.json b/examples/apps/collaborative-textarea/package.json index 46a19028949a..f1e05e3d6041 100644 --- a/examples/apps/collaborative-textarea/package.json +++ b/examples/apps/collaborative-textarea/package.json @@ -21,16 +21,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -38,7 +39,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/apps/contact-collection/package.json b/examples/apps/contact-collection/package.json index 309562c54376..6942e3bc0ff7 100644 --- a/examples/apps/contact-collection/package.json +++ b/examples/apps/contact-collection/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -30,7 +31,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/apps/data-object-grid/package.json b/examples/apps/data-object-grid/package.json index 181a35cb4885..b8901e9099d9 100644 --- a/examples/apps/data-object-grid/package.json +++ b/examples/apps/data-object-grid/package.json @@ -13,18 +13,19 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", "dev": "npm run webpack:dev", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -32,7 +33,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/apps/presence-tracker/package.json b/examples/apps/presence-tracker/package.json index 15fce84f0abd..582b64282c5b 100644 --- a/examples/apps/presence-tracker/package.json +++ b/examples/apps/presence-tracker/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run jest:verbose", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -32,7 +33,6 @@ "test": "npm run test:jest", "test:jest": "cross-env logger__level=crit start-server-and-test tinylicious 7070 test:jest:run", "test:jest:run": "jest --ci --detectOpenHandles", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:jest:verbose", "tinylicious": "tinylicious", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" diff --git a/examples/apps/staging/package.json b/examples/apps/staging/package.json index b1cb579880b6..9520febec1af 100644 --- a/examples/apps/staging/package.json +++ b/examples/apps/staging/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -30,7 +31,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/apps/task-selection/package.json b/examples/apps/task-selection/package.json index 98b56e902f28..8c6c99793ba2 100644 --- a/examples/apps/task-selection/package.json +++ b/examples/apps/task-selection/package.json @@ -15,16 +15,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -32,7 +33,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/apps/tree-cli-app/package.json b/examples/apps/tree-cli-app/package.json index b9a728a7fb80..b58f3c77e60e 100644 --- a/examples/apps/tree-cli-app/package.json +++ b/examples/apps/tree-cli-app/package.json @@ -14,24 +14,24 @@ "type": "module", "scripts": { "app": "node ./lib/index.js", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", "test:mocha": "npm run test:mocha:esm", "test:mocha:esm": "mocha", - "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha" + "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "dependencies": { "@fluidframework/core-interfaces": "workspace:~", diff --git a/examples/apps/tree-comparison/package.json b/examples/apps/tree-comparison/package.json index 75d1971e579f..071fd2aa9810 100644 --- a/examples/apps/tree-comparison/package.json +++ b/examples/apps/tree-comparison/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -30,7 +31,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/benchmarks/bubblebench/baseline/package.json b/examples/benchmarks/bubblebench/baseline/package.json index de725ef2ddf3..741e8add6a6f 100644 --- a/examples/benchmarks/bubblebench/baseline/package.json +++ b/examples/benchmarks/bubblebench/baseline/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/benchmarks/bubblebench/common/package.json b/examples/benchmarks/bubblebench/common/package.json index 80a15f3470b5..5a57ca6f507c 100644 --- a/examples/benchmarks/bubblebench/common/package.json +++ b/examples/benchmarks/bubblebench/common/package.json @@ -23,16 +23,16 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format" }, diff --git a/examples/benchmarks/bubblebench/experimental-tree/package.json b/examples/benchmarks/bubblebench/experimental-tree/package.json index f5db93a58923..b87d5885e930 100644 --- a/examples/benchmarks/bubblebench/experimental-tree/package.json +++ b/examples/benchmarks/bubblebench/experimental-tree/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/benchmarks/bubblebench/ot/package.json b/examples/benchmarks/bubblebench/ot/package.json index d216ed3b09e7..feaf7309b7e9 100644 --- a/examples/benchmarks/bubblebench/ot/package.json +++ b/examples/benchmarks/bubblebench/ot/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/benchmarks/bubblebench/shared-tree/package.json b/examples/benchmarks/bubblebench/shared-tree/package.json index 67042d71af06..129eb6630ec1 100644 --- a/examples/benchmarks/bubblebench/shared-tree/package.json +++ b/examples/benchmarks/bubblebench/shared-tree/package.json @@ -23,16 +23,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -44,7 +45,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/benchmarks/odspsnapshotfetch-perftestapp/package.json b/examples/benchmarks/odspsnapshotfetch-perftestapp/package.json index e59d68698cad..e4c84d67bd8d 100644 --- a/examples/benchmarks/odspsnapshotfetch-perftestapp/package.json +++ b/examples/benchmarks/odspsnapshotfetch-perftestapp/package.json @@ -13,17 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", "dev": "npm run webpack:dev", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", diff --git a/examples/benchmarks/tablebench/package.json b/examples/benchmarks/tablebench/package.json index b5adecc2ab4d..25bd6a7d7c29 100644 --- a/examples/benchmarks/tablebench/package.json +++ b/examples/benchmarks/tablebench/package.json @@ -18,19 +18,18 @@ "bench:profile": "mocha --v8-prof --v8-logfile=profile.log --v8-no-logfile-per-isolate --timeout 999999 --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js && node --prof-process profile.log > profile.txt && rimraf profile.log && echo See results in profile.txt", "bench:profile:inspect-brk": "mocha --enable-source-maps --inspect-brk --timeout 999999 --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js", "bench:size": "mocha --timeout 999999 --perfMode --fgrep @Size", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -45,6 +44,7 @@ "test:mocha": "npm run test:mocha:esm", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/client-logger/app-insights-logger/package.json b/examples/client-logger/app-insights-logger/package.json index f72f6e698200..a3de6b8ba9d9 100644 --- a/examples/client-logger/app-insights-logger/package.json +++ b/examples/client-logger/app-insights-logger/package.json @@ -14,25 +14,25 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:format-first": "npm run format && npm run build", + "check:format": "npm run biome-check", "clean": "rimraf --glob coverage dist lib nyc \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "compile:format-first": "npm run format && npm run build:compile", + "coverage": "npm run test:jest:coverage", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format-and-build": "npm run format && npm run build", - "format-and-compile": "npm run format && npm run build:compile", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "start": "start-server-and-test start:tinylicious 7070 start:test-app:client", "start:test-app:client": "webpack serve --config webpack.config.cjs", "start:tinylicious": "tinylicious", "test": "npm run test:jest", - "test:coverage": "npm run test:jest:coverage", "test:jest": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --detectOpenHandles --no-cache", "test:jest:coverage": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --detectOpenHandles --coverage --no-cache --ci", "webpack": "webpack --env production", diff --git a/examples/data-objects/canvas/package.json b/examples/data-objects/canvas/package.json index ff93fdb2603f..02d063490f18 100644 --- a/examples/data-objects/canvas/package.json +++ b/examples/data-objects/canvas/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/data-objects/clicker/package.json b/examples/data-objects/clicker/package.json index bdcbe3bd37e6..686a44715945 100644 --- a/examples/data-objects/clicker/package.json +++ b/examples/data-objects/clicker/package.json @@ -23,16 +23,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -44,7 +45,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/data-objects/codemirror/package.json b/examples/data-objects/codemirror/package.json index 9051fc7d5036..ca8e7d9c70ed 100644 --- a/examples/data-objects/codemirror/package.json +++ b/examples/data-objects/codemirror/package.json @@ -23,18 +23,18 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", "dev": "npm run webpack:dev", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", diff --git a/examples/data-objects/diceroller/package.json b/examples/data-objects/diceroller/package.json index d25de844c82e..fddf48426b90 100644 --- a/examples/data-objects/diceroller/package.json +++ b/examples/data-objects/diceroller/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/data-objects/inventory-app/package.json b/examples/data-objects/inventory-app/package.json index e3e896fcceca..9d9c743ccb12 100644 --- a/examples/data-objects/inventory-app/package.json +++ b/examples/data-objects/inventory-app/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/data-objects/monaco/package.json b/examples/data-objects/monaco/package.json index ff859f70a802..c9833d11b518 100644 --- a/examples/data-objects/monaco/package.json +++ b/examples/data-objects/monaco/package.json @@ -14,16 +14,16 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", diff --git a/examples/data-objects/multiview/constellation-model/package.json b/examples/data-objects/multiview/constellation-model/package.json index 012aed612179..9d537ab970a7 100644 --- a/examples/data-objects/multiview/constellation-model/package.json +++ b/examples/data-objects/multiview/constellation-model/package.json @@ -23,16 +23,16 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format" }, diff --git a/examples/data-objects/multiview/constellation-view/package.json b/examples/data-objects/multiview/constellation-view/package.json index 6847e47b42ec..2b18de973f4a 100644 --- a/examples/data-objects/multiview/constellation-view/package.json +++ b/examples/data-objects/multiview/constellation-view/package.json @@ -23,17 +23,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format" }, @@ -66,13 +66,13 @@ "fluidBuild": { "tasks": { "eslint": [ - "@fluid-example/multiview-coordinate-interface#build:esnext", - "@fluid-example/multiview-slider-coordinate-view#build:esnext", + "@fluid-example/multiview-coordinate-interface#esnext", + "@fluid-example/multiview-slider-coordinate-view#esnext", "^tsc" ], - "build:esnext": [ - "@fluid-example/multiview-coordinate-interface#build:esnext", - "@fluid-example/multiview-slider-coordinate-view#build:esnext", + "esnext": [ + "@fluid-example/multiview-coordinate-interface#esnext", + "@fluid-example/multiview-slider-coordinate-view#esnext", "^tsc" ] } diff --git a/examples/data-objects/multiview/container/package.json b/examples/data-objects/multiview/container/package.json index b1967f3ec30f..0a2fb570c5c7 100644 --- a/examples/data-objects/multiview/container/package.json +++ b/examples/data-objects/multiview/container/package.json @@ -13,17 +13,18 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -35,7 +36,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/data-objects/multiview/coordinate-model/package.json b/examples/data-objects/multiview/coordinate-model/package.json index 3760354d8d1d..7b9c24a184ef 100644 --- a/examples/data-objects/multiview/coordinate-model/package.json +++ b/examples/data-objects/multiview/coordinate-model/package.json @@ -23,16 +23,16 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format" }, diff --git a/examples/data-objects/multiview/interface/package.json b/examples/data-objects/multiview/interface/package.json index 9067e9a36a88..ec3fcabf21ab 100644 --- a/examples/data-objects/multiview/interface/package.json +++ b/examples/data-objects/multiview/interface/package.json @@ -23,16 +23,16 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format" }, diff --git a/examples/data-objects/multiview/plot-coordinate-view/package.json b/examples/data-objects/multiview/plot-coordinate-view/package.json index 56d1cae69919..45da0fe1e22d 100644 --- a/examples/data-objects/multiview/plot-coordinate-view/package.json +++ b/examples/data-objects/multiview/plot-coordinate-view/package.json @@ -23,17 +23,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format" }, @@ -65,11 +65,11 @@ "fluidBuild": { "tasks": { "eslint": [ - "@fluid-example/multiview-coordinate-interface#build:esnext", + "@fluid-example/multiview-coordinate-interface#esnext", "^tsc" ], - "build:esnext": [ - "@fluid-example/multiview-coordinate-interface#build:esnext", + "esnext": [ + "@fluid-example/multiview-coordinate-interface#esnext", "^tsc" ] } diff --git a/examples/data-objects/multiview/slider-coordinate-view/package.json b/examples/data-objects/multiview/slider-coordinate-view/package.json index 0bbe052de566..f44c44ffe5d6 100644 --- a/examples/data-objects/multiview/slider-coordinate-view/package.json +++ b/examples/data-objects/multiview/slider-coordinate-view/package.json @@ -23,17 +23,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format" }, @@ -65,11 +65,11 @@ "fluidBuild": { "tasks": { "eslint": [ - "@fluid-example/multiview-coordinate-interface#build:esnext", + "@fluid-example/multiview-coordinate-interface#esnext", "^tsc" ], - "build:esnext": [ - "@fluid-example/multiview-coordinate-interface#build:esnext", + "esnext": [ + "@fluid-example/multiview-coordinate-interface#esnext", "^tsc" ] } diff --git a/examples/data-objects/multiview/triangle-view/package.json b/examples/data-objects/multiview/triangle-view/package.json index 1d9fc64f1fe5..52f3bce1c236 100644 --- a/examples/data-objects/multiview/triangle-view/package.json +++ b/examples/data-objects/multiview/triangle-view/package.json @@ -23,17 +23,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format" }, @@ -65,11 +65,11 @@ "fluidBuild": { "tasks": { "eslint": [ - "@fluid-example/multiview-coordinate-interface#build:esnext", + "@fluid-example/multiview-coordinate-interface#esnext", "^tsc" ], - "build:esnext": [ - "@fluid-example/multiview-coordinate-interface#build:esnext", + "esnext": [ + "@fluid-example/multiview-coordinate-interface#esnext", "^tsc" ] } diff --git a/examples/data-objects/prosemirror/package.json b/examples/data-objects/prosemirror/package.json index 551f8f29ed42..87ec18a71d73 100644 --- a/examples/data-objects/prosemirror/package.json +++ b/examples/data-objects/prosemirror/package.json @@ -23,18 +23,18 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", "dev": "npm run webpack:dev", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", diff --git a/examples/data-objects/smde/package.json b/examples/data-objects/smde/package.json index d425ccb94fe2..ec05f6a2f61a 100644 --- a/examples/data-objects/smde/package.json +++ b/examples/data-objects/smde/package.json @@ -13,17 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", "dev": "npm run webpack:dev", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", diff --git a/examples/data-objects/table-document/package.json b/examples/data-objects/table-document/package.json index 469014112f6b..622192ba9790 100644 --- a/examples/data-objects/table-document/package.json +++ b/examples/data-objects/table-document/package.json @@ -27,32 +27,32 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "echo skip concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm", + "check:exports": "echo skip concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc _api-extractor-temp", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/examples/data-objects/table-tree/package.json b/examples/data-objects/table-tree/package.json index 200c3af17556..9cbf27ea7e3f 100644 --- a/examples/data-objects/table-tree/package.json +++ b/examples/data-objects/table-tree/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/data-objects/todo/package.json b/examples/data-objects/todo/package.json index 87d48fa8017e..f530ddde444a 100644 --- a/examples/data-objects/todo/package.json +++ b/examples/data-objects/todo/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/data-objects/webflow/package.json b/examples/data-objects/webflow/package.json index ba9a19d6b20c..67abf1ad2007 100644 --- a/examples/data-objects/webflow/package.json +++ b/examples/data-objects/webflow/package.json @@ -14,20 +14,20 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:copy": "copyfiles -u 1 \"src/**/*.css\" lib/", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", - "dev": "npm run build:esnext -- --watch", + "copyfiles": "copyfiles -u 1 \"src/**/*.css\" lib/", + "coverage": "c8 npm test", + "dev": "npm run esnext -- --watch", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -39,10 +39,10 @@ "start:spo-df": "webpack serve --config webpack.config.cjs --env mode=spo-df", "start:tinylicious": "webpack serve --config webpack.config.cjs --env mode=tinylicious", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/external-data/package.json b/examples/external-data/package.json index 7a3f979e7115..f3c1ed017940 100644 --- a/examples/external-data/package.json +++ b/examples/external-data/package.json @@ -13,17 +13,18 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src tests", "eslint:fix": "eslint --format stylish src tests --fix", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "good-fences": "gf", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --detectOpenHandles", "lint": "fluid-build . --task lint", "lint:fences": "npm run good-fences", "lint:fix": "fluid-build . --task eslint:fix --task format", @@ -41,8 +42,7 @@ "start:tinylicious": "tinylicious", "test": "npm run test:jest", "test:jest": "jest --detectOpenHandles --runInBand --no-cache", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --detectOpenHandles", - "test:verbose": "npm run test:jest:verbose", + "test:verbose": "npm run jest:verbose", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../common/build/build-common/src/cjs/package.json ./dist", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" diff --git a/examples/service-clients/azure-client/external-controller/package.json b/examples/service-clients/azure-client/external-controller/package.json index 305551a6c149..427ec47aa193 100644 --- a/examples/service-clients/azure-client/external-controller/package.json +++ b/examples/service-clients/azure-client/external-controller/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --detectOpenHandles", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious:test": "start-server-and-test tinylicious 7070 start:client:test", "test": "npm run test:jest", "test:jest": "jest --detectOpenHandles", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --detectOpenHandles", "tinylicious": "tinylicious", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" diff --git a/examples/service-clients/azure-client/todo-list/package.json b/examples/service-clients/azure-client/todo-list/package.json index f452dcbe0361..c1d967925bf9 100644 --- a/examples/service-clients/azure-client/todo-list/package.json +++ b/examples/service-clients/azure-client/todo-list/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --detectOpenHandles", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -34,7 +35,6 @@ "start:tinylicious:test": "start-server-and-test tinylicious 7070 start:client:test", "test": "npm run test:jest", "test:jest": "jest --detectOpenHandles", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --detectOpenHandles", "tinylicious": "tinylicious", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" diff --git a/examples/service-clients/odsp-client/shared-tree-demo/package.json b/examples/service-clients/odsp-client/shared-tree-demo/package.json index c5057ff87bac..2321db072fc5 100644 --- a/examples/service-clients/odsp-client/shared-tree-demo/package.json +++ b/examples/service-clients/odsp-client/shared-tree-demo/package.json @@ -13,16 +13,16 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", diff --git a/examples/utils/bundle-size-tests/package.json b/examples/utils/bundle-size-tests/package.json index 5521b12518fe..9e8446df672d 100644 --- a/examples/utils/bundle-size-tests/package.json +++ b/examples/utils/bundle-size-tests/package.json @@ -13,25 +13,25 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm", + "check:format": "npm run biome-check", "clean": "rimraf --glob build dist lib bundleAnalysis \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", + "esnext": "tsc --project ./tsconfig.json", "explore:tree": "fluid-build . --task webpack && source-map-explorer ./build/sharedTree.js --html bundleAnalysis/reportTree.html", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", "test": "npm run test:mocha", "test:mocha": "npm run test:mocha:esm", "test:mocha:esm": "mocha", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "webpack": "webpack", "webpack:profile": "npm run webpack" }, @@ -85,7 +85,7 @@ "webpack" ], "webpack": [ - "^build:esnext" + "^esnext" ], "test:mocha:esm": [ "...", diff --git a/examples/utils/example-driver/package.json b/examples/utils/example-driver/package.json index 9b042dd0886f..b40dd4d38d36 100644 --- a/examples/utils/example-driver/package.json +++ b/examples/utils/example-driver/package.json @@ -28,17 +28,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/examples/utils/example-utils/package.json b/examples/utils/example-utils/package.json index aff2c6478d91..13333059298b 100644 --- a/examples/utils/example-utils/package.json +++ b/examples/utils/example-utils/package.json @@ -28,20 +28,20 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", "check:exports": "api-extractor run --config ./api-extractor-lint.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" @@ -93,7 +93,7 @@ "fluidBuild": { "tasks": { "check:exports": [ - "build:esnext" + "esnext" ] } }, diff --git a/examples/utils/example-webpack-integration/package.json b/examples/utils/example-webpack-integration/package.json index 7249420350d0..bd2c7ee0a52e 100644 --- a/examples/utils/example-webpack-integration/package.json +++ b/examples/utils/example-webpack-integration/package.json @@ -28,17 +28,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/examples/utils/import-testing/package.json b/examples/utils/import-testing/package.json index d394e3dd4b33..608292f764ae 100644 --- a/examples/utils/import-testing/package.json +++ b/examples/utils/import-testing/package.json @@ -13,20 +13,18 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", @@ -34,7 +32,9 @@ "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "dependencies": { "@fluid-internal/client-utils": "workspace:~", diff --git a/examples/utils/migration-tools/package.json b/examples/utils/migration-tools/package.json index c780da5e3bdb..f0807863e048 100644 --- a/examples/utils/migration-tools/package.json +++ b/examples/utils/migration-tools/package.json @@ -36,25 +36,25 @@ } }, "scripts": { - "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outDir ./lib", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "attw": "echo skip attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "echo skip attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outDir ./lib", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/examples/utils/webpack-fluid-loader/package.json b/examples/utils/webpack-fluid-loader/package.json index 7cc5952db3fc..468456b5bb92 100644 --- a/examples/utils/webpack-fluid-loader/package.json +++ b/examples/utils/webpack-fluid-loader/package.json @@ -30,32 +30,32 @@ }, "types": "lib/index.d.ts", "scripts": { + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", "build:webpack": "npm run webpack", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize", "webpack": "webpack --color --config webpack.config.cjs" @@ -140,7 +140,7 @@ "_tasksComment1": "webpack-fluid-loader injects a script tag pointing at its own bundle (/code/fluid-loader.bundle.js) into the page. This bundle must remain up to date for webpack-fluid-loader users.", "_tasksComment2": "Using build:esnext over something like compile guarantees that this happens, since the build:esnext target depends on all transitive dependencies' build:esnext targets.", "tasks": { - "build:esnext": [ + "esnext": [ "...", "webpack" ] diff --git a/examples/version-migration/live-schema-upgrade/package.json b/examples/version-migration/live-schema-upgrade/package.json index 61f9cbffb53e..330352c8be4c 100644 --- a/examples/version-migration/live-schema-upgrade/package.json +++ b/examples/version-migration/live-schema-upgrade/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -30,7 +31,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/version-migration/same-container/package.json b/examples/version-migration/same-container/package.json index 3ba29801dbb2..724d5682da3d 100644 --- a/examples/version-migration/same-container/package.json +++ b/examples/version-migration/same-container/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -30,7 +31,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/version-migration/separate-container/package.json b/examples/version-migration/separate-container/package.json index 859b2a2a64fa..b96b1e623f4a 100644 --- a/examples/version-migration/separate-container/package.json +++ b/examples/version-migration/separate-container/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -30,7 +31,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/version-migration/tree-shim/package.json b/examples/version-migration/tree-shim/package.json index c16d2134c97a..4126df696fe6 100644 --- a/examples/version-migration/tree-shim/package.json +++ b/examples/version-migration/tree-shim/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -31,7 +32,6 @@ "start:tinylicious": "start-server-and-test tinylicious 7070 start", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/view-integration/container-views/package.json b/examples/view-integration/container-views/package.json index 8f3099052345..13ec3ed09d38 100644 --- a/examples/view-integration/container-views/package.json +++ b/examples/view-integration/container-views/package.json @@ -13,23 +13,23 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", "start": "webpack serve", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/view-integration/external-views/package.json b/examples/view-integration/external-views/package.json index 9d457e728a12..a7b6fae298e2 100644 --- a/examples/view-integration/external-views/package.json +++ b/examples/view-integration/external-views/package.json @@ -15,16 +15,17 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -35,7 +36,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/examples/view-integration/view-framework-sampler/package.json b/examples/view-integration/view-framework-sampler/package.json index 9fdab9c54838..7b7e8ddcfa37 100644 --- a/examples/view-integration/view-framework-sampler/package.json +++ b/examples/view-integration/view-framework-sampler/package.json @@ -13,16 +13,17 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "prepack": "npm run webpack", @@ -30,7 +31,6 @@ "start:test": "webpack serve --config webpack.test.cjs", "test": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "webpack": "webpack --env production", "webpack:dev": "webpack --env development" }, diff --git a/experimental/PropertyDDS/packages/property-changeset/package.json b/experimental/PropertyDDS/packages/property-changeset/package.json index 9c9a2a7f8980..b0859126708c 100644 --- a/experimental/PropertyDDS/packages/property-changeset/package.json +++ b/experimental/PropertyDDS/packages/property-changeset/package.json @@ -31,31 +31,30 @@ "dist/index.d.ts" ], "scripts": { + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", - "coverage": "npx nyc --silent --cwd --nycrc-path `pwd`/.nycrc npm run test", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/experimental/PropertyDDS/packages/property-common/package.json b/experimental/PropertyDDS/packages/property-common/package.json index a703860d3393..4010196f2bf7 100644 --- a/experimental/PropertyDDS/packages/property-common/package.json +++ b/experimental/PropertyDDS/packages/property-common/package.json @@ -14,25 +14,25 @@ "module": "lib/index.js", "types": "dist/index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.esnext.json", - "build:test": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.esnext.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "mocha --recursive dist/test -r node_modules/@fluid-internal/mocha-test-setup", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "tsc" + "tsc": "tsc", + "tsc-test": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/experimental/PropertyDDS/packages/property-common/platform-dependent/package.json b/experimental/PropertyDDS/packages/property-common/platform-dependent/package.json index 27981e66258c..95ab943030f3 100644 --- a/experimental/PropertyDDS/packages/property-common/platform-dependent/package.json +++ b/experimental/PropertyDDS/packages/property-common/platform-dependent/package.json @@ -14,10 +14,10 @@ "main": "server.js", "browser": "browser.js", "scripts": { - "check:biome": "biome check .", - "check:format": "npm run check:biome", - "format": "npm run format:biome", - "format:biome": "biome check . --write" + "biome-check": "biome check .", + "biome-format": "biome check . --write", + "check:format": "npm run biome-check", + "format": "npm run biome-format" }, "devDependencies": { "@biomejs/biome": "~1.9.3" diff --git a/experimental/PropertyDDS/packages/property-dds/package.json b/experimental/PropertyDDS/packages/property-dds/package.json index a5dcf000c6d4..af5f3c71ff54 100644 --- a/experimental/PropertyDDS/packages/property-dds/package.json +++ b/experimental/PropertyDDS/packages/property-dds/package.json @@ -27,23 +27,21 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-release-tags": "api-extractor run --local --config ./api-extractor-lint.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:format": "npm run check:biome", - "check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", @@ -51,7 +49,9 @@ "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "dependencies": { "@fluid-experimental/property-changeset": "workspace:~", diff --git a/experimental/PropertyDDS/packages/property-properties/package.json b/experimental/PropertyDDS/packages/property-properties/package.json index f11171388d1a..735ab9f050d0 100644 --- a/experimental/PropertyDDS/packages/property-properties/package.json +++ b/experimental/PropertyDDS/packages/property-properties/package.json @@ -19,26 +19,25 @@ "src/index.d.ts" ], "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.esnext.json", - "build:test": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", - "coverage": "npx nyc --silent --cwd .. --nycrc-path `pwd`/.nycrc npm run test && npx nyc --no-clean --silent --cwd .. --nycrc-path `pwd`/.nycrc npm run test:changeset && npx nyc --no-clean --cwd .. --nycrc-path `pwd`/.nycrc npm run test:common", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.esnext.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "mocha --recursive dist/test -r node_modules/@fluid-internal/mocha-test-setup", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "tsc" + "tsc": "tsc", + "tsc-test": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/experimental/dds/ot/ot/package.json b/experimental/dds/ot/ot/package.json index c14fa36b0148..4ab023a84c11 100644 --- a/experimental/dds/ot/ot/package.json +++ b/experimental/dds/ot/ot/package.json @@ -27,37 +27,37 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/experimental/dds/ot/sharejs/json1/package.json b/experimental/dds/ot/sharejs/json1/package.json index e6241bb43fbd..5d7e2ca5ca31 100644 --- a/experimental/dds/ot/sharejs/json1/package.json +++ b/experimental/dds/ot/sharejs/json1/package.json @@ -27,38 +27,38 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", - "dev": "npm run tsc && concurrently \"npm run tsc -- --watch\" \"npm run build:test -- --watch\"", + "coverage": "c8 npm test", + "dev": "npm run tsc && concurrently \"npm run tsc -- --watch\" \"npm run tsc-test -- --watch\"", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/experimental/dds/sequence-deprecated/package.json b/experimental/dds/sequence-deprecated/package.json index a793b68fc57e..d8148689f7cd 100644 --- a/experimental/dds/sequence-deprecated/package.json +++ b/experimental/dds/sequence-deprecated/package.json @@ -27,37 +27,37 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/experimental/dds/tree/package.json b/experimental/dds/tree/package.json index 4677c3c85486..25edff070f5a 100644 --- a/experimental/dds/tree/package.json +++ b/experimental/dds/tree/package.json @@ -27,25 +27,26 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.esnext.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", "check:exports:cjs:EditLog": "echo AB#8147 skip api-extractor run --config api-extractor/api-extractor-lint-EditLog.cjs.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", "check:exports:esm:EditLog": "echo AB#8147 skip api-extractor run --config api-extractor/api-extractor-lint-EditLog.esm.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.esnext.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cf ./experimental-tree.test-files.tar ./src/test ./dist/test ./lib/test", @@ -53,7 +54,6 @@ "perf:measure": "npm run perf -- --fgrep @Measurement", "test": "npm run test:mocha", "test:benchmark:report": "mocha --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000", - "test:coverage": "c8 npm test", "test:mocha": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "test:stress": "cross-env FUZZ_TEST_COUNT=10 FUZZ_STRESS_RUN=normal \"MOCHA_SPEC=dist/test/**/*.fuzz.tests.js\" mocha", diff --git a/experimental/framework/data-objects/package.json b/experimental/framework/data-objects/package.json index 48599c954555..30ea20190804 100644 --- a/experimental/framework/data-objects/package.json +++ b/experimental/framework/data-objects/package.json @@ -27,23 +27,23 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/experimental/framework/last-edited/package.json b/experimental/framework/last-edited/package.json index ca5895b4fe74..485f971313c1 100644 --- a/experimental/framework/last-edited/package.json +++ b/experimental/framework/last-edited/package.json @@ -27,24 +27,24 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/fluidBuild.config.cjs b/fluidBuild.config.cjs index e224895f0c92..97e539ea1e61 100644 --- a/fluidBuild.config.cjs +++ b/fluidBuild.config.cjs @@ -7,7 +7,7 @@ // See https://www.typescriptlang.org/docs/handbook/intro-to-js-ts.html#ts-check // @ts-check -const tscDependsOn = ["^tsc", "^api", "build:genver", "ts2esm"]; +const tscDependsOn = ["^tsc", "^api", "generate-version", "ts2esm"]; /** * The settings in this file configure the Fluid build tools, such as fluid-build and flub. Some settings apply to the @@ -26,7 +26,7 @@ module.exports = { "compile", "lint", "ci:build:api-reports", - "ci:build:docs", + "api-extractor-ci-docs", "build:manifest", "build:readme", ], @@ -42,22 +42,28 @@ module.exports = { "compile", "lint", "build:api-reports", - "build:docs", + "api-extractor", "build:manifest", "build:readme", ], script: false, }, "compile": { - dependsOn: ["commonjs", "build:esnext", "api", "build:test", "build:copy"], + dependsOn: ["commonjs", "esnext", "api", "tsc-test", "copyfiles"], script: false, }, "commonjs": { - dependsOn: ["tsc", "build:test"], + dependsOn: ["tsc", "tsc-test"], script: false, }, "lint": { - dependsOn: ["eslint", "good-fences", "depcruise", "check:exports", "check:release-tags"], + dependsOn: [ + "eslint", + "good-fences", + "depcruise", + "check:exports", + "api-extractor-release-tags", + ], script: false, }, "checks": { @@ -68,26 +74,31 @@ module.exports = { dependsOn: [], script: false, }, - "build:copy": [], - "build:genver": [], + "copyfiles": [], + "generate-version": [], "typetests:gen": [], "ts2esm": [], "tsc": tscDependsOn, - "build:esnext": [...tscDependsOn, "^build:esnext"], + "esnext": [...tscDependsOn, "^esnext"], // Generic build:test script should be replaced by :esm or :cjs specific versions. // "tsc" would be nice to eliminate from here, but plenty of packages still focus // on CommonJS. - "build:test": ["typetests:gen", "tsc", "api-extractor:commonjs", "api-extractor:esnext"], - "build:test:cjs": ["typetests:gen", "tsc", "api-extractor:commonjs"], - "build:test:esm": ["typetests:gen", "build:esnext", "api-extractor:esnext"], + "tsc-test": [ + "typetests:gen", + "tsc", + "generate-entrypoints-commonjs", + "generate-entrypoints-esnext", + ], + "tsc-test-cjs": ["typetests:gen", "tsc", "generate-entrypoints-commonjs"], + "tsc-test-esm": ["typetests:gen", "esnext", "generate-entrypoints-esnext"], "api": { - dependsOn: ["api-extractor:commonjs", "api-extractor:esnext"], - // dependsOn: ["api-extractor:commonjs", "api-extractor:esnext"], + dependsOn: ["generate-entrypoints-commonjs", "generate-entrypoints-esnext"], + // dependsOn: ["generate-entrypoints-commonjs", "generate-entrypoints-esnext"], script: false, }, - "api-extractor:commonjs": ["tsc"], - "api-extractor:esnext": { - dependsOn: ["build:esnext"], + "generate-entrypoints-commonjs": ["tsc"], + "generate-entrypoints-esnext": { + dependsOn: ["esnext"], script: true, }, // build:api-reports may be handled in one step with build:docs when a @@ -96,15 +107,15 @@ module.exports = { // generate reports from legacy entrypoint as well as the "current" one. // The "current" entrypoint should be the broadest of "public.d.ts", // "beta.d.ts", and "alpha.d.ts". - "build:api-reports:current": ["api-extractor:esnext"], - "build:api-reports:legacy": ["api-extractor:esnext"], - "ci:build:api-reports:current": ["api-extractor:esnext"], - "ci:build:api-reports:legacy": ["api-extractor:esnext"], - // With most packages in client building ESM first, there is ideally just "build:esnext" dependency. + "api-reports-current": ["generate-entrypoints-esnext"], + "api-reports-legacy": ["generate-entrypoints-esnext"], + "api-extractor-ci-api-reports-current": ["generate-entrypoints-esnext"], + "api-extractor-ci-api-reports-legacy": ["generate-entrypoints-esnext"], + // With most packages in client building ESM first, there is ideally just "esnext" dependency. // The package's local 'api-extractor.json' may use the entrypoint from either CJS or ESM, // therefore we need to require both before running api-extractor. - "build:docs": ["tsc", "build:esnext"], - "ci:build:docs": ["tsc", "build:esnext"], + "api-extractor": ["tsc", "esnext"], + "api-extractor-ci-docs": ["tsc", "esnext"], "build:readme": { dependsOn: ["compile"], script: true, @@ -117,8 +128,8 @@ module.exports = { "check:exports": ["api"], // The package's local 'api-extractor-lint.json' may use the entrypoint from either CJS or ESM, // therefore we need to require both before running api-extractor. - "check:release-tags": ["tsc", "build:esnext"], - "check:are-the-types-wrong": ["tsc", "build:esnext", "api"], + "api-extractor-release-tags": ["tsc", "esnext"], + "attw": ["tsc", "esnext", "api"], "check:format": { dependencies: [], script: true, @@ -127,18 +138,18 @@ module.exports = { dependencies: [], script: true, }, - "check:biome": [], + "biome-check": [], "check:prettier": [], // ADO #7297: Review why the direct dependency on 'build:esm:test' is necessary. // Should 'compile' be enough? compile -> build:test -> build:test:esm - "eslint": ["compile", "build:test:esm"], + "eslint": ["compile", "tsc-test-esm"], "good-fences": [], - "format:biome": [], + "biome-format": [], "format:prettier": [], "prettier": [], "prettier:fix": [], - "webpack": ["^tsc", "^build:esnext"], - "webpack:profile": ["^tsc", "^build:esnext"], + "webpack": ["^tsc", "^esnext"], + "webpack:profile": ["^tsc", "^esnext"], "clean": { before: ["*"], }, @@ -148,9 +159,9 @@ module.exports = { "test:cjs": { dependsOn: ["test:unit:cjs"], script: false }, "test:esm": { dependsOn: ["test:unit:esm"], script: false }, "test:jest": ["build:compile"], - "test:mocha": ["build:test"], - "test:mocha:cjs": ["build:test:cjs"], - "test:mocha:esm": ["build:test:esm"], + "test:mocha": ["tsc-test"], + "test:mocha:cjs": ["tsc-test-cjs"], + "test:mocha:esm": ["tsc-test-esm"], "test:unit": { dependsOn: ["test:mocha", "test:jest"], script: false }, "test:unit:cjs": { dependsOn: ["test:mocha:cjs"], script: false }, "test:unit:esm": { dependsOn: ["test:mocha:esm"], script: false }, @@ -329,16 +340,13 @@ module.exports = { // Exclusion per handler handlerExclusions: { "fluid-build-tasks-eslint": [ - // There are no built files, but a tsconfig.json is present to simplify the - // eslint config. - "azure/packages/azure-local-service/package.json", - // eslint doesn't really depend on build. Doing so just slows down a package build. - "^packages/test/snapshots/package.json", - "^packages/test/test-utils/package.json", - // TODO: AB#7630 uses lint only ts projects for coverage which don't have representative tsc scripts - "^packages/tools/fluid-runner/package.json", - ], - "fluid-build-tasks-tsc": [], + // Disabled by task-rename: policies will add tasks with incorrect names + ".*", + ], + "fluid-build-tasks-tsc": [ + // Disabled by task-rename: policies will add tasks with incorrect names + ".*", + ], "html-copyright-file-header": [ // Tests generate HTML "snapshot" artifacts "tools/api-markdown-documenter/src/test/snapshots/.*", @@ -430,15 +438,8 @@ module.exports = { "packages/tools/devtools/devtools-view/package.json", ], "npm-package-exports-apis-linted": [ - // Packages that violate the API linting rules - // ae-missing-release-tags, ae-incompatible-release-tags - "^examples/data-objects/table-document/", - - // Packages with APIs that don't need strict API linting - "^build-tools/", - "^common/build/", - "^experimental/PropertyDDS/", - "^tools/api-markdown-documenter/", + // Disabled by task-rename: policies will add tasks with incorrect names + ".*", ], // This handler will be rolled out slowly, so excluding most packages here while we roll it out. "npm-package-exports-field": [ diff --git a/mapping.md b/mapping.md new file mode 100644 index 000000000000..202f7b6300db --- /dev/null +++ b/mapping.md @@ -0,0 +1,51 @@ +``` +🔄 Rename Plan: +INFO: build:esnext → esnext (154 packages) +INFO: check:biome → biome-check (163 packages) +INFO: format:biome → biome-format (163 packages) +INFO: test:jest:verbose → jest:verbose (31 packages) +INFO: api-extractor:commonjs → generate-entrypoints-commonjs (67 packages) +INFO: api-extractor:esnext → generate-entrypoints-esnext (67 packages) +INFO: build:api-reports:current → api-reports-current (45 packages) +INFO: build:api-reports:legacy → api-reports-legacy (45 packages) +INFO: build:docs → api-extractor (90 packages) +INFO: build:test:cjs → tsc-test-cjs (74 packages) +INFO: build:test:esm → tsc-test-esm (81 packages) +INFO: check:are-the-types-wrong → attw (96 packages) +INFO: check:exports:bundle-release-tags → api-extractor-exports-bundle-release-tags (88 packages) +INFO: check:exports:cjs:legacy → api-extractor-exports-cjs-legacy (45 packages) +INFO: check:exports:cjs:public → api-extractor-exports-cjs-public (65 packages) +INFO: check:exports:esm:legacy → api-extractor-exports-esm-legacy (45 packages) +INFO: check:exports:esm:public → api-extractor-exports-esm-public (65 packages) +INFO: ci:build:api-reports:current → api-extractor-ci-api-reports-current (45 packages) +INFO: ci:build:api-reports:legacy → api-extractor-ci-api-reports-legacy (45 packages) +INFO: ci:build:docs → api-extractor-ci-docs (89 packages) +INFO: format-and-build → build:format-first (8 packages) +INFO: format-and-compile → compile:format-first (8 packages) +INFO: test:coverage → coverage (69 packages) +INFO: build:copy → copyfiles (9 packages) +INFO: check:exports:cjs:alpha → api-extractor-exports-cjs-alpha (11 packages) +INFO: check:exports:esm:alpha → api-extractor-exports-esm-alpha (11 packages) +INFO: check:exports:cjs:index → api-extractor-exports-cjs-index (23 packages) +INFO: check:exports:esm:index → api-extractor-exports-esm-index (23 packages) +INFO: build:genver → generate-version (38 packages) +INFO: build:api-reports:browser:current → api-reports-browser-current (1 packages) +INFO: build:api-reports:browser:legacy → api-reports-browser-legacy (1 packages) +INFO: build:exports:browser → generate-exports-browser (1 packages) +INFO: build:exports:node → generate-exports-node (1 packages) +INFO: build:test:jest → jest (1 packages) +INFO: build:test:mocha:cjs → tsc-test-mocha-cjs (1 packages) +INFO: build:test:mocha:esm → tsc-test-mocha-esm (1 packages) +INFO: build:test:types → tsc-test-types (1 packages) +INFO: ci:build:api-reports:browser:current → api-extractor-ci-api-reports-browser-current (1 packages) +INFO: ci:build:api-reports:browser:legacy → api-extractor-ci-api-reports-browser-legacy (1 packages) +INFO: ci:build:api-reports:node:current → api-extractor-ci-api-reports-node-current (1 packages) +INFO: ci:build:api-reports:node:legacy → api-extractor-ci-api-reports-node-legacy (1 packages) +INFO: build:test:esm:no-exactOptionalPropertyTypes → tsc-test-esm-no-exactOptionalPropertyTypes (1 packages) +INFO: check:exports:cjs:beta → api-extractor-exports-cjs-beta (9 packages) +INFO: check:exports:esm:beta → api-extractor-exports-esm-beta (9 packages) +INFO: build:esnext:experimental → esnext-experimental (1 packages) +INFO: build:esnext:main → esnext-main (1 packages) +INFO: build:test → tsc-test (6 packages) +INFO: check:release-tags → api-extractor-release-tags (1 packages) +``` diff --git a/packages/common/client-utils/package.json b/packages/common/client-utils/package.json index 6ec993a282c1..2951cdb59228 100644 --- a/packages/common/client-utils/package.json +++ b/packages/common/client-utils/package.json @@ -55,28 +55,27 @@ "main": "lib/indexBrowser.js", "types": "lib/indexBrowser.d.ts", "scripts": { + "api-extractor": "api-extractor run --local --config api-extractor/api-extractor-model-browser.json", + "api-extractor-ci-api-reports-browser-current": "api-extractor run --config api-extractor/api-extractor-report-browser.current.json", + "api-extractor-ci-api-reports-browser-legacy": "api-extractor run --config api-extractor/api-extractor-report-browser.legacy.json", + "api-extractor-ci-api-reports-node-current": "api-extractor run --config api-extractor/api-extractor-report-node.current.json", + "api-extractor-ci-api-reports-node-legacy": "api-extractor run --config api-extractor/api-extractor-report-node.legacy.json", + "api-extractor-ci-docs": "api-extractor run --config api-extractor/api-extractor-model-browser.json", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-reports-browser-current": "api-extractor run --local --config api-extractor/api-extractor-report-browser.current.json", + "api-reports-browser-legacy": "api-extractor run --local --config api-extractor/api-extractor-report-browser.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal-api-report/current ./internal-api-report/legacy", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:browser:*\" && concurrently \"npm:build:api-reports:node:*\"", - "build:api-reports:browser:current": "api-extractor run --local --config api-extractor/api-extractor-report-browser.current.json", - "build:api-reports:browser:legacy": "api-extractor run --local --config api-extractor/api-extractor-report-browser.legacy.json", - "build:api-reports:node:current": "npm run ci:build:api-reports:node:current", - "build:api-reports:node:legacy": "npm run ci:build:api-reports:node:legacy", + "build:api-reports": "concurrently \"npm:api-reports-browser-*\" && concurrently \"npm:build:api-reports:node:*\"", + "build:api-reports:node:current": "npm run api-extractor-ci-api-reports-node-current", + "build:api-reports:node:legacy": "npm run api-extractor-ci-api-reports-node-legacy", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local --config api-extractor/api-extractor-model-browser.json", - "build:esnext": "tsc --project ./tsconfig.json", - "build:exports:browser": "flub generate entrypoints --outFileLegacyBeta legacy --outFilePrefix {@unscopedPackageName}.browser. --mainEntrypoint ./src/indexBrowser.ts --outDir ./lib", - "build:exports:node": "flub generate entrypoints --outFileLegacyBeta legacy --outFilePrefix {@unscopedPackageName}.node. --mainEntrypoint ./src/indexNode.ts --outDir ./lib", - "build:test": "concurrently npm:build:test:mocha npm:build:test:jest npm:build:test:types", - "build:test:jest": "fluid-tsc commonjs --project ./src/test/jest/tsconfig.cjs.json", - "build:test:mocha": "concurrently npm:build:test:mocha:esm npm:build:test:mocha:cjs", - "build:test:mocha:cjs": "fluid-tsc commonjs --project ./src/test/mocha/tsconfig.cjs.json", - "build:test:mocha:esm": "tsc --project ./src/test/mocha/tsconfig.json", - "build:test:types": "tsc --project ./src/test/types/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal-api-report/current ./internal-api-report/legacy", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "build:test": "concurrently npm:tsc-test:mocha npm:jest npm:tsc-test-types", + "build:test:mocha": "concurrently npm:tsc-test-mocha-esm npm:tsc-test-mocha-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", "check:exports:cjs:indexBrowser": "api-extractor run --config api-extractor/api-extractor-lint-indexBrowser.cjs.json", "check:exports:cjs:indexNode": "api-extractor run --config api-extractor/api-extractor-lint-indexNode.cjs.json", "check:exports:esm:browser:current": "api-extractor run --config api-extractor/api-extractor-lint-browser.current.esm.json", @@ -85,27 +84,28 @@ "check:exports:esm:indexNode": "api-extractor run --config api-extractor/api-extractor-lint-indexNode.esm.json", "check:exports:esm:node:current": "api-extractor run --config api-extractor/api-extractor-lint-node.current.esm.json", "check:exports:esm:node:legacy": "api-extractor run --config api-extractor/api-extractor-lint-node.legacy.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:browser:current": "api-extractor run --config api-extractor/api-extractor-report-browser.current.json", - "ci:build:api-reports:browser:legacy": "api-extractor run --config api-extractor/api-extractor-report-browser.legacy.json", - "ci:build:api-reports:node:current": "api-extractor run --config api-extractor/api-extractor-report-node.current.json", - "ci:build:api-reports:node:legacy": "api-extractor run --config api-extractor/api-extractor-report-node.legacy.json", - "ci:build:docs": "api-extractor run --config api-extractor/api-extractor-model-browser.json", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob _api-extractor-temp dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-exports-browser": "flub generate entrypoints --outFileLegacyBeta legacy --outFilePrefix {@unscopedPackageName}.browser. --mainEntrypoint ./src/indexBrowser.ts --outDir ./lib", + "generate-exports-node": "flub generate entrypoints --outFileLegacyBeta legacy --outFilePrefix {@unscopedPackageName}.node. --mainEntrypoint ./src/indexNode.ts --outDir ./lib", + "jest": "fluid-tsc commonjs --project ./src/test/jest/tsconfig.cjs.json", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha && npm run test:jest", - "test:coverage": "c8 npm test", "test:jest": "jest --ci", "test:mocha": "npm run test:mocha:esm && npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS \"MOCHA_SPEC=dist/test/mocha/**/*.spec.*js\" mocha", "test:mocha:esm": "cross-env \"MOCHA_SPEC=lib/test/mocha/**/*.spec.*js\" mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-mocha-cjs": "fluid-tsc commonjs --project ./src/test/mocha/tsconfig.cjs.json", + "tsc-test-mocha-esm": "tsc --project ./src/test/mocha/tsconfig.json", + "tsc-test-types": "tsc --project ./src/test/types/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, @@ -182,31 +182,31 @@ "tasks": { "eslint": [ "tsc", - "build:esnext", - "build:test:mocha:esm", - "build:test:jest", - "build:test:types" + "esnext", + "tsc-test-mocha-esm", + "jest", + "tsc-test-types" ], - "build:api-reports:browser:current": [ - "build:exports:browser" + "api-reports-browser-current": [ + "generate-exports-browser" ], - "build:api-reports:browser:legacy": [ - "build:exports:browser" + "api-reports-browser-legacy": [ + "generate-exports-browser" ], "build:api-reports:node:current": [ - "build:api-reports:browser:current" + "api-reports-browser-current" ], "build:api-reports:node:legacy": [ - "build:api-reports:browser:legacy" + "api-reports-browser-legacy" ], - "build:exports:browser": [ - "build:esnext" + "generate-exports-browser": [ + "esnext" ], - "build:exports:node": [ - "build:esnext" + "generate-exports-node": [ + "esnext" ], - "check:exports:bundle-release-tags": [ - "build:exports:browser" + "api-extractor-exports-bundle-release-tags": [ + "generate-exports-browser" ], "check:exports:cjs:indexBrowser": [ "tsc" @@ -215,46 +215,46 @@ "tsc" ], "check:exports:esm:browser:current": [ - "build:exports:browser" + "generate-exports-browser" ], "check:exports:esm:browser:legacy": [ - "build:exports:browser" + "generate-exports-browser" ], "check:exports:esm:indexBrowser": [ - "build:esnext" + "esnext" ], "check:exports:esm:indexNode": [ - "build:exports:node" + "generate-exports-node" ], "check:exports:esm:node:current": [ - "build:exports:node" + "generate-exports-node" ], "check:exports:esm:node:legacy": [ - "build:exports:node" + "generate-exports-node" ], - "build:test:jest": [ + "jest": [ "tsc" ], - "build:test:mocha:cjs": [ + "tsc-test-mocha-cjs": [ "tsc" ], - "build:test:mocha:esm": [ - "build:esnext" + "tsc-test-mocha-esm": [ + "esnext" ], - "build:test:types": [ - "build:esnext" + "tsc-test-types": [ + "esnext" ], - "ci:build:api-reports:browser:current": [ - "build:exports:browser" + "api-extractor-ci-api-reports-browser-current": [ + "generate-exports-browser" ], - "ci:build:api-reports:browser:legacy": [ - "build:exports:browser" + "api-extractor-ci-api-reports-browser-legacy": [ + "generate-exports-browser" ], - "ci:build:api-reports:node:current": [ - "build:exports:node" + "api-extractor-ci-api-reports-node-current": [ + "generate-exports-node" ], - "ci:build:api-reports:node:legacy": [ - "build:exports:node" + "api-extractor-ci-api-reports-node-legacy": [ + "generate-exports-node" ] } }, diff --git a/packages/common/container-definitions/package.json b/packages/common/container-definitions/package.json index da9dc190d499..84d3261c464c 100644 --- a/packages/common/container-definitions/package.json +++ b/packages/common/container-definitions/package.json @@ -48,44 +48,44 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "ci:build": "npm run build:compile", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "ci:test": "echo No test for this package", "ci:test:coverage": "echo No test for this package", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "place:cjs:package-stub": "copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" diff --git a/packages/common/core-interfaces/package.json b/packages/common/core-interfaces/package.json index 56b63a6763fa..0de2a3c8be38 100644 --- a/packages/common/core-interfaces/package.json +++ b/packages/common/core-interfaces/package.json @@ -52,49 +52,49 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs && npm run build:test:esm:no-exactOptionalPropertyTypes", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "build:test:esm:no-exactOptionalPropertyTypes": "tsc --project ./src/test/tsconfig.no-exactOptionalPropertyTypes.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs && npm run tsc-test-esm-no-exactOptionalPropertyTypes", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "ci:build": "npm run build:compile", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "place:cjs:package-stub": "copyfiles -f ./src/cjs/package.json ./dist", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", + "tsc-test-esm-no-exactOptionalPropertyTypes": "tsc --project ./src/test/tsconfig.no-exactOptionalPropertyTypes.json", "tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" @@ -142,8 +142,8 @@ }, "fluidBuild": { "tasks": { - "build:test:esm:no-exactOptionalPropertyTypes": [ - "build:esnext" + "tsc-test-esm-no-exactOptionalPropertyTypes": [ + "esnext" ] } }, diff --git a/packages/common/core-utils/package.json b/packages/common/core-utils/package.json index 31b7551e3d5e..64f27504bcf7 100644 --- a/packages/common/core-utils/package.json +++ b/packages/common/core-utils/package.json @@ -48,49 +48,49 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", "bench": "mocha --timeout 999999 --perfMode --parentProcess --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js", "bench:profile": "mocha --v8-prof --v8-logfile=profile.log --v8-no-logfile-per-isolate --timeout 999999 --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js && node --prof-process profile.log > profile.txt && rimraf profile.log && echo See results in profile.txt", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", "test:benchmark:report": "mocha --exit --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/common/driver-definitions/package.json b/packages/common/driver-definitions/package.json index ff6c7c53cd53..997b4fd4112c 100644 --- a/packages/common/driver-definitions/package.json +++ b/packages/common/driver-definitions/package.json @@ -48,36 +48,36 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "ci:build": "npm run build:compile", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "ci:test": "echo No test for this package", "ci:test:coverage": "echo No test for this package", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "place:cjs:package-stub": "copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", @@ -106,7 +106,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/dds/cell/package.json b/packages/dds/cell/package.json index 984850ac93c0..b9663134446c 100644 --- a/packages/dds/cell/package.json +++ b/packages/dds/cell/package.json @@ -38,39 +38,39 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/counter/package.json b/packages/dds/counter/package.json index 153a8aed6ea5..9b32bd0d3b1d 100644 --- a/packages/dds/counter/package.json +++ b/packages/dds/counter/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/ink/package.json b/packages/dds/ink/package.json index 80fafb58ec73..c7afe33cb839 100644 --- a/packages/dds/ink/package.json +++ b/packages/dds/ink/package.json @@ -27,37 +27,37 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/legacy-dds/package.json b/packages/dds/legacy-dds/package.json index f8789a21480e..e6ae6e68e1ad 100644 --- a/packages/dds/legacy-dds/package.json +++ b/packages/dds/legacy-dds/package.json @@ -60,47 +60,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/map/package.json b/packages/dds/map/package.json index f8378d2d30ab..dc8363d0cb1a 100644 --- a/packages/dds/map/package.json +++ b/packages/dds/map/package.json @@ -60,43 +60,41 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cf ./map.test-files.tar ./src/test ./dist/test ./lib/test", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:memory": "mocha --config ./src/test/memory/.mocharc.cjs", "test:memory-profiling:report": "mocha --config ./src/test/memory/.mocharc.cjs", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", @@ -106,6 +104,8 @@ "test:snapshots:regen": "npm run test:mocha:esm -- --snapshot", "test:stress": "cross-env FUZZ_TEST_COUNT=100 FUZZ_STRESS_RUN=normal mocha --ignore \"lib/test/memory/**/*\" --recursive \"lib/test/**/*.spec.js\"", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/matrix/package.json b/packages/dds/matrix/package.json index 734b763e8ece..6a446e5b5edb 100644 --- a/packages/dds/matrix/package.json +++ b/packages/dds/matrix/package.json @@ -60,46 +60,44 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test", "bench": "cd bench && node --expose-gc -r ts-node/register src/index.ts", "bench:profile": "cd bench && node -r ts-node/register --prof --logfile=profile.log --no-logfile-per-isolate src/index.ts --runInBand && node --prof-process profile.log > profile.txt && rimraf profile.log && echo See results in bench/profile.txt", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts bench/dist \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cf ./matrix.test-files.tar ./src/test ./dist/test ./lib/test", "test": "npm run test:mocha", "test:benchmark:report": "mocha --config src/test/time/.mocharc.cjs", - "test:coverage": "c8 npm test", "test:memory": "mocha --config src/test/memory/.mocharc.cjs", "test:memory-profiling:report": "mocha --config src/test/memory/.mocharc.cjs", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", @@ -108,6 +106,8 @@ "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "test:stress": "cross-env FUZZ_TEST_COUNT=100 FUZZ_STRESS_RUN=normal mocha --ignore \"lib/test/memory/**/*\" --recursive \"lib/test/**/*.spec.js\"", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/merge-tree/package.json b/packages/dds/merge-tree/package.json index fd20b800b5ce..8df090abfcad 100644 --- a/packages/dds/merge-tree/package.json +++ b/packages/dds/merge-tree/package.json @@ -60,37 +60,36 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cvf ./merge-tree.test-files.tar ./src/test ./dist/test ./lib/test", @@ -99,13 +98,14 @@ "perf:profile": "node --inspect-brk ./node_modules/mocha/bin/mocha.js \"dist/**/*.spec.*js\" --node-option unhandled-rejections=strict,expose-gc --exit --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 30000", "test": "npm run test:mocha", "test:benchmark:report": "mocha \"dist/test/*.perf.spec.*js\" --node-option unhandled-rejections=strict,expose-gc --exit --perfMode --fgrep @Benchmark --fgrep @ExecutionTime -r @fluid-internal/mocha-test-setup --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "test:stress": "cross-env FUZZ_STRESS_RUN=1 FUZZ_TEST_COUNT=normal npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/ordered-collection/package.json b/packages/dds/ordered-collection/package.json index 7228dc2db8e3..cca2381a0f0a 100644 --- a/packages/dds/ordered-collection/package.json +++ b/packages/dds/ordered-collection/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/pact-map/package.json b/packages/dds/pact-map/package.json index 6d09f6e541b3..9823214da6cb 100644 --- a/packages/dds/pact-map/package.json +++ b/packages/dds/pact-map/package.json @@ -27,37 +27,37 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/packages/dds/register-collection/package.json b/packages/dds/register-collection/package.json index dc6643dbd063..a4b2a4690254 100644 --- a/packages/dds/register-collection/package.json +++ b/packages/dds/register-collection/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/sequence/package.json b/packages/dds/sequence/package.json index f2080c716577..dfcdf3fe43b8 100644 --- a/packages/dds/sequence/package.json +++ b/packages/dds/sequence/package.json @@ -70,38 +70,37 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test/intervalCollection ./internal/test", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test/intervalCollection ./internal/test", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cf ./sequence.test-files.tar ./src/test ./dist/test ./lib/test", @@ -109,7 +108,6 @@ "perf:measure": "npm run perf -- --fgrep @Measurement", "test": "npm run test:mocha", "test:benchmark:report": "mocha \"lib/test/*.perf.spec.*js\" --node-option unhandled-rejections=strict,expose-gc --exit --perfMode --fgrep @Benchmark --fgrep @ExecutionTime -r @fluid-internal/mocha-test-setup --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000", - "test:coverage": "c8 npm test", "test:memory": "mocha --config src/test/memory/.mocharc.cjs", "test:memory-profiling:report": "mocha --config src/test/memory/.mocharc.cjs", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", @@ -119,6 +117,8 @@ "test:newsnapfiles": "node --conditions=allow-ff-test-exports lib/test/createSnapshotFiles.tool.js", "test:stress": "cross-env FUZZ_TEST_COUNT=100 FUZZ_STRESS_RUN=normal mocha --ignore \"lib/test/memory/**/*\" --recursive \"lib/test/**/*.fuzz.spec.*js\" -r @fluid-internal/mocha-test-setup", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/shared-object-base/package.json b/packages/dds/shared-object-base/package.json index 79029d2eaa37..7511e2892002 100644 --- a/packages/dds/shared-object-base/package.json +++ b/packages/dds/shared-object-base/package.json @@ -48,48 +48,48 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", "bench": "ts-node bench/src/index.ts", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/shared-summary-block/package.json b/packages/dds/shared-summary-block/package.json index 1b50a3fb11c9..cd8a9911d5c1 100644 --- a/packages/dds/shared-summary-block/package.json +++ b/packages/dds/shared-summary-block/package.json @@ -48,48 +48,48 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/task-manager/package.json b/packages/dds/task-manager/package.json index 6024ea0bd481..d8c4709a388f 100644 --- a/packages/dds/task-manager/package.json +++ b/packages/dds/task-manager/package.json @@ -60,47 +60,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/dds/test-dds-utils/package.json b/packages/dds/test-dds-utils/package.json index 8988b71c1281..9a545c69f401 100644 --- a/packages/dds/test-dds-utils/package.json +++ b/packages/dds/test-dds-utils/package.json @@ -27,36 +27,36 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc _api-extractor-temp lib", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && npm run test:mocha:cjs", "test:mocha:cjs": "mocha \"dist/test/**/*.spec.*js\"", "test:mocha:esm": "mocha \"lib/test/**/*.spec.*js\"", "test:mocha:suite": "mocha \"lib/test/ddsSuiteCases/*js\"", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, @@ -118,11 +118,11 @@ }, "fluidBuild": { "tasks": { - "build:test:cjs": [ + "tsc-test-cjs": [ "...", "@fluid-private/stochastic-test-utils#build:test" ], - "build:test:esm": [ + "tsc-test-esm": [ "...", "@fluid-private/stochastic-test-utils#build:test" ] diff --git a/packages/dds/tree/package.json b/packages/dds/tree/package.json index 516c349dd7fb..7e458d2f589a 100644 --- a/packages/dds/tree/package.json +++ b/packages/dds/tree/package.json @@ -80,52 +80,50 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test", "bench": "mocha --timeout 999999 --perfMode --parentProcess --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js", "bench:profile": "mocha --v8-prof --v8-logfile=profile.log --v8-no-logfile-per-isolate --timeout 999999 --perfMode --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js && node --prof-process profile.log > profile.txt && rimraf profile.log && echo See results in profile.txt", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "depcruise": "depcruise src/ --ignore-known", "depcruise:regen-known-issues": "depcruise-baseline src", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cf ./tree.test-files.tar ./src/test ./dist/test ./lib/test", "test": "npm run test:mocha", "test:benchmark:report": "mocha --exit --perfMode --parentProcess --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js --timeout 60000", - "test:coverage": "c8 npm test", "test:customBenchmarks": "mocha --config ./.mocharc.customBenchmarks.cjs", "test:customBenchmarks:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:customBenchmarks", "test:memory": "mocha --perfMode --config ./src/test/memory/.mocharc.cjs", @@ -139,6 +137,8 @@ "test:snapshots:regen": "pnpm test:mocha:esm --snapshot", "test:stress": "cross-env FUZZ_TEST_COUNT=20 FUZZ_STRESS_RUN=normal mocha --ignore \"lib/test/memory/**/*\" --recursive \"lib/test/**/*.spec.js\"", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, @@ -223,16 +223,16 @@ }, "fluidBuild": { "tasks": { - "build:test:cjs": [ + "tsc-test-cjs": [ "...", - "@fluidframework/id-compressor#build:test:cjs" + "@fluidframework/id-compressor#tsc-test-cjs" ], - "build:test:esm": [ + "tsc-test-esm": [ "...", - "@fluidframework/id-compressor#build:test:esm" + "@fluidframework/id-compressor#tsc-test-esm" ], - "ci:build:docs": [ - "build:esnext" + "api-extractor-ci-docs": [ + "esnext" ] } }, diff --git a/packages/drivers/debugger/package.json b/packages/drivers/debugger/package.json index 6c61e90e2fb8..d66287dd143a 100644 --- a/packages/drivers/debugger/package.json +++ b/packages/drivers/debugger/package.json @@ -48,33 +48,33 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", @@ -106,7 +106,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/drivers/driver-base/package.json b/packages/drivers/driver-base/package.json index 7042819f7805..bd75e4696773 100644 --- a/packages/drivers/driver-base/package.json +++ b/packages/drivers/driver-base/package.json @@ -38,39 +38,39 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/drivers/driver-web-cache/package.json b/packages/drivers/driver-web-cache/package.json index e4852b5989fd..ae73929f07b8 100644 --- a/packages/drivers/driver-web-cache/package.json +++ b/packages/drivers/driver-web-cache/package.json @@ -48,43 +48,43 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:jest", "test:jest": "jest --ci", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/drivers/file-driver/package.json b/packages/drivers/file-driver/package.json index 3e19aef1dda8..2fb5483f3939 100644 --- a/packages/drivers/file-driver/package.json +++ b/packages/drivers/file-driver/package.json @@ -38,25 +38,25 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", @@ -89,7 +89,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/drivers/local-driver/package.json b/packages/drivers/local-driver/package.json index 778de913f52e..b01c8c7c43fe 100644 --- a/packages/drivers/local-driver/package.json +++ b/packages/drivers/local-driver/package.json @@ -50,47 +50,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/drivers/odsp-driver-definitions/package.json b/packages/drivers/odsp-driver-definitions/package.json index 5c6b74f6413b..c75ffc6ef458 100644 --- a/packages/drivers/odsp-driver-definitions/package.json +++ b/packages/drivers/odsp-driver-definitions/package.json @@ -48,40 +48,40 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/drivers/odsp-driver/package.json b/packages/drivers/odsp-driver/package.json index 50d3b3334dab..bd4ed87847c1 100644 --- a/packages/drivers/odsp-driver/package.json +++ b/packages/drivers/odsp-driver/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:cjs && npm run test:mocha:esm", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/drivers/odsp-urlResolver/package.json b/packages/drivers/odsp-urlResolver/package.json index 4967288ea257..1c1a5ef35be8 100644 --- a/packages/drivers/odsp-urlResolver/package.json +++ b/packages/drivers/odsp-urlResolver/package.json @@ -38,29 +38,27 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", @@ -69,6 +67,8 @@ "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/drivers/replay-driver/package.json b/packages/drivers/replay-driver/package.json index d953a12dbfaa..8191c9b130e1 100644 --- a/packages/drivers/replay-driver/package.json +++ b/packages/drivers/replay-driver/package.json @@ -38,25 +38,25 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", @@ -91,7 +91,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/drivers/routerlicious-driver/package.json b/packages/drivers/routerlicious-driver/package.json index c3c09cdbe447..b2753cc60956 100644 --- a/packages/drivers/routerlicious-driver/package.json +++ b/packages/drivers/routerlicious-driver/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:cjs && echo \"ADO #7404 - ESM modules cannot be stubbed - npm run test:mocha:esm\"", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/drivers/routerlicious-urlResolver/package.json b/packages/drivers/routerlicious-urlResolver/package.json index c441b7933a71..c5eabd184926 100644 --- a/packages/drivers/routerlicious-urlResolver/package.json +++ b/packages/drivers/routerlicious-urlResolver/package.json @@ -38,29 +38,27 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", @@ -69,6 +67,8 @@ "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/drivers/tinylicious-driver/package.json b/packages/drivers/tinylicious-driver/package.json index 380258c269d0..1866231716f6 100644 --- a/packages/drivers/tinylicious-driver/package.json +++ b/packages/drivers/tinylicious-driver/package.json @@ -47,31 +47,29 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", "check:exports:cjs:testUtils": "api-extractor run --config api-extractor/api-extractor-lint-testUtils.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", "check:exports:esm:testUtils": "api-extractor run --config api-extractor/api-extractor-lint-testUtils.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", @@ -80,6 +78,8 @@ "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/framework/agent-scheduler/package.json b/packages/framework/agent-scheduler/package.json index f706b5442463..748337552949 100644 --- a/packages/framework/agent-scheduler/package.json +++ b/packages/framework/agent-scheduler/package.json @@ -48,40 +48,40 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "dev": "npm run build:dev -- --watch", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/framework/ai-collab/package.json b/packages/framework/ai-collab/package.json index efc3ce61cd6b..e370ea7a5cd5 100644 --- a/packages/framework/ai-collab/package.json +++ b/packages/framework/ai-collab/package.json @@ -48,42 +48,42 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack . --profile node16", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --profile node16", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, @@ -147,7 +147,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/framework/aqueduct/package.json b/packages/framework/aqueduct/package.json index a29cbc7b6e92..3d74f0f3f705 100644 --- a/packages/framework/aqueduct/package.json +++ b/packages/framework/aqueduct/package.json @@ -48,46 +48,46 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/framework/attributor/package.json b/packages/framework/attributor/package.json index bc2b91866847..4d4cfca11c72 100644 --- a/packages/framework/attributor/package.json +++ b/packages/framework/attributor/package.json @@ -27,36 +27,36 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/framework/client-logger/app-insights-logger/package.json b/packages/framework/client-logger/app-insights-logger/package.json index 3463475d280d..5c8e600246c6 100644 --- a/packages/framework/client-logger/app-insights-logger/package.json +++ b/packages/framework/client-logger/app-insights-logger/package.json @@ -48,30 +48,30 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:format-first": "npm run format && npm run build", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob _api-extractor-temp coverage dist lib {alpha,beta,internal,legacy}.d.ts nyc \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "compile:format-first": "npm run format && npm run build:compile", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format-and-build": "npm run format && npm run build", - "format-and-compile": "npm run format && npm run build:compile", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", @@ -127,7 +127,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/framework/client-logger/fluid-telemetry/package.json b/packages/framework/client-logger/fluid-telemetry/package.json index 544f256e1c93..ae293bd5cfd6 100644 --- a/packages/framework/client-logger/fluid-telemetry/package.json +++ b/packages/framework/client-logger/fluid-telemetry/package.json @@ -48,30 +48,30 @@ "types": "lib/index.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:format-first": "npm run format && npm run build", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob _api-extractor-temp coverage dist lib {alpha,beta,internal,legacy}.d.ts nyc \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "compile:format-first": "npm run format && npm run build:compile", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format-and-build": "npm run format && npm run build", - "format-and-compile": "npm run format && npm run build:compile", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "start:tinylicious:test": "tinylicious > tinylicious.log 2>&1", @@ -127,7 +127,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/framework/data-object-base/package.json b/packages/framework/data-object-base/package.json index e882ea1fe904..fd936cd2eca3 100644 --- a/packages/framework/data-object-base/package.json +++ b/packages/framework/data-object-base/package.json @@ -33,23 +33,23 @@ "es5/**/*" ], "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib es5 \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/packages/framework/dds-interceptions/package.json b/packages/framework/dds-interceptions/package.json index cbdfc3324934..1be81df6e3cd 100644 --- a/packages/framework/dds-interceptions/package.json +++ b/packages/framework/dds-interceptions/package.json @@ -27,37 +27,37 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/framework/fluid-framework/package.json b/packages/framework/fluid-framework/package.json index a75edb4868da..b2e5855c656e 100644 --- a/packages/framework/fluid-framework/package.json +++ b/packages/framework/fluid-framework/package.json @@ -58,38 +58,38 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob _api-extractor-temp dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\"", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", @@ -126,7 +126,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/framework/fluid-static/package.json b/packages/framework/fluid-static/package.json index 973c8058e0ef..e81147d86613 100644 --- a/packages/framework/fluid-static/package.json +++ b/packages/framework/fluid-static/package.json @@ -48,46 +48,46 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/framework/oldest-client-observer/package.json b/packages/framework/oldest-client-observer/package.json index 6ed311acb4fb..b5d90551a843 100644 --- a/packages/framework/oldest-client-observer/package.json +++ b/packages/framework/oldest-client-observer/package.json @@ -48,34 +48,34 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", @@ -130,7 +130,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/framework/presence/package.json b/packages/framework/presence/package.json index a878fe6e375d..531ef15406ca 100644 --- a/packages/framework/presence/package.json +++ b/packages/framework/presence/package.json @@ -42,42 +42,42 @@ ], "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "attw": "attw --pack . --profile node16", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "npm run build:esnext:main && npm run build:esnext:experimental", - "build:esnext:experimental": "tsc --project ./tsconfig.json", - "build:esnext:main": "tsc --project ./tsconfig.main.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --profile node16", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "npm run esnext-main && npm run esnext-experimental", + "esnext-experimental": "tsc --project ./tsconfig.json", + "esnext-main": "tsc --project ./tsconfig.main.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "npm run tsc:main && npm run tsc:experimental", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "tsc:experimental": "fluid-tsc commonjs --project ./tsconfig.cjs.json", "tsc:main": "fluid-tsc commonjs --project ./tsconfig.main.cjs.json && copyfiles -f ./src/cjs/package.json ./dist", "typetests:gen": "flub generate typetests --dir . -v", @@ -148,19 +148,19 @@ }, "fluidBuild": { "tasks": { - "build:esnext:experimental": [ - "build:esnext:main" + "esnext-experimental": [ + "esnext-main" ], - "build:esnext:main": [ + "esnext-main": [ "^api", - "^build:esnext" + "^esnext" ], - "check:exports:bundle-release-tags": [ - "build:esnext" + "api-extractor-exports-bundle-release-tags": [ + "esnext" ], "eslint": [ - "build:esnext", - "^build:test:esm" + "esnext", + "^tsc-test-esm" ], "tsc:experimental": [ "tsc:main" diff --git a/packages/framework/react/package.json b/packages/framework/react/package.json index 10f6ce511951..5449d4c816d0 100644 --- a/packages/framework/react/package.json +++ b/packages/framework/react/package.json @@ -58,43 +58,43 @@ "types": "./dist/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outDir ./lib", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack . --entrypoints .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json && copyfiles -f ../../../common/build/build-common/src/esm/package.json ./lib", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --entrypoints .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json && copyfiles -f ../../../common/build/build-common/src/esm/package.json ./lib", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outDir ./lib", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cf ./react.test-files.tar ./src/test ./dist/test ./lib/test", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/packages/framework/request-handler/package.json b/packages/framework/request-handler/package.json index 6b4826625598..6f43d9764cf3 100644 --- a/packages/framework/request-handler/package.json +++ b/packages/framework/request-handler/package.json @@ -48,46 +48,46 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/framework/synthesize/package.json b/packages/framework/synthesize/package.json index 67dc6fefddae..3a8be76b9f0e 100644 --- a/packages/framework/synthesize/package.json +++ b/packages/framework/synthesize/package.json @@ -48,46 +48,46 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/framework/tree-agent-langchain/package.json b/packages/framework/tree-agent-langchain/package.json index 49c0911b9d89..f39823b00009 100644 --- a/packages/framework/tree-agent-langchain/package.json +++ b/packages/framework/tree-agent-langchain/package.json @@ -48,42 +48,42 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack . --profile node16", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --profile node16", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, @@ -146,7 +146,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/framework/tree-agent-ses/package.json b/packages/framework/tree-agent-ses/package.json index d674513fcf0b..bd42b9e145b1 100644 --- a/packages/framework/tree-agent-ses/package.json +++ b/packages/framework/tree-agent-ses/package.json @@ -48,42 +48,42 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack . --profile node16", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --profile node16", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, @@ -139,7 +139,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/framework/tree-agent/package.json b/packages/framework/tree-agent/package.json index f0996e682575..c676ee9b3f30 100644 --- a/packages/framework/tree-agent/package.json +++ b/packages/framework/tree-agent/package.json @@ -48,42 +48,42 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack . --profile node16", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --profile node16", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, @@ -152,7 +152,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/framework/undo-redo/package.json b/packages/framework/undo-redo/package.json index b8271da599e0..692d493c0a35 100644 --- a/packages/framework/undo-redo/package.json +++ b/packages/framework/undo-redo/package.json @@ -38,38 +38,38 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/loader/container-loader/package.json b/packages/loader/container-loader/package.json index 8970f9a8463c..799a2a8555ac 100644 --- a/packages/loader/container-loader/package.json +++ b/packages/loader/container-loader/package.json @@ -108,50 +108,50 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test/container ./internal/test/contracts ./internal/test/connectionManager ./internal/test/deltaManager ./internal/test/utils", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test/container ./internal/test/contracts ./internal/test/connectionManager ./internal/test/deltaManager ./internal/test/utils", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", "check:exports:cjs:legacyAlpha": "api-extractor run --config api-extractor/api-extractor-lint-legacyAlpha.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", "check:exports:esm:legacyAlpha": "api-extractor run --config api-extractor/api-extractor-lint-legacyAlpha.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "place:cjs:package-stub": "copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" diff --git a/packages/loader/driver-utils/package.json b/packages/loader/driver-utils/package.json index 759829478fa2..a31fa519045d 100644 --- a/packages/loader/driver-utils/package.json +++ b/packages/loader/driver-utils/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/loader/test-loader-utils/package.json b/packages/loader/test-loader-utils/package.json index 3c12b7a72751..6dacaf48a031 100644 --- a/packages/loader/test-loader-utils/package.json +++ b/packages/loader/test-loader-utils/package.json @@ -27,23 +27,23 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp lib", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" @@ -70,17 +70,17 @@ }, "fluidBuild": { "tasks": { - "check:exports:cjs:index": [ + "api-extractor-exports-cjs-index": [ "...", "tsc" ], - "check:exports:esm:index": [ + "api-extractor-exports-esm-index": [ "...", - "build:esnext" + "esnext" ], - "check:exports:bundle-release-tags": [ + "api-extractor-exports-bundle-release-tags": [ "...", - "build:esnext" + "esnext" ] } }, diff --git a/packages/runtime/container-runtime-definitions/package.json b/packages/runtime/container-runtime-definitions/package.json index 7ccf1a2abd0e..a3df4d22e43e 100644 --- a/packages/runtime/container-runtime-definitions/package.json +++ b/packages/runtime/container-runtime-definitions/package.json @@ -42,39 +42,39 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/runtime/container-runtime/package.json b/packages/runtime/container-runtime/package.json index f06857552b10..e956d1b23fa0 100644 --- a/packages/runtime/container-runtime/package.json +++ b/packages/runtime/container-runtime/package.json @@ -98,50 +98,50 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test/containerRuntime ./internal/test/deltaScheduler ./internal/test/blobManager ./internal/test/summary ./internal/test/gc", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test/containerRuntime ./internal/test/deltaScheduler ./internal/test/blobManager ./internal/test/summary ./internal/test/gc", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cf ./container-runtime.test-files.tar ./src/test ./dist/test ./lib/test", "place:cjs:package-stub": "copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", "test": "npm run test:mocha", "test:benchmark:report": "cross-env \"MOCHA_SPEC=dist/**/*.perf.spec.*js\" mocha --timeout 10s --perfMode --parentProcess --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" diff --git a/packages/runtime/datastore-definitions/package.json b/packages/runtime/datastore-definitions/package.json index 5634f4a230ac..bcdab45bd8c8 100644 --- a/packages/runtime/datastore-definitions/package.json +++ b/packages/runtime/datastore-definitions/package.json @@ -42,39 +42,39 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/runtime/datastore/package.json b/packages/runtime/datastore/package.json index ec36bc869830..b0839ede1b31 100644 --- a/packages/runtime/datastore/package.json +++ b/packages/runtime/datastore/package.json @@ -48,48 +48,48 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "place:cjs:package-stub": "copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" diff --git a/packages/runtime/id-compressor/package.json b/packages/runtime/id-compressor/package.json index b5d69a93e359..b6a61fc7e079 100644 --- a/packages/runtime/id-compressor/package.json +++ b/packages/runtime/id-compressor/package.json @@ -60,49 +60,49 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test-utils", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test-utils", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", "test:benchmark:report": "mocha --timeout 999999 --perfMode --parentProcess --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js \"./lib/**/*.perf.spec.*js\"", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "test:snapshots:regen": "npm run test:mocha:esm -- --snapshot", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "tsc:watch": "copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist && fluid-tsc commonjs --watch --project ./tsconfig.cjs.json" }, "c8": { diff --git a/packages/runtime/runtime-definitions/package.json b/packages/runtime/runtime-definitions/package.json index 12f1418db6f2..fa1fbb06670f 100644 --- a/packages/runtime/runtime-definitions/package.json +++ b/packages/runtime/runtime-definitions/package.json @@ -58,41 +58,41 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", "check:exports:cjs:legacyAlpha": "api-extractor run --config api-extractor/api-extractor-lint-legacyAlpha.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", "check:exports:esm:legacyAlpha": "api-extractor run --config api-extractor/api-extractor-lint-legacyAlpha.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outFileLegacyAlpha legacyAlpha --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/runtime/runtime-utils/package.json b/packages/runtime/runtime-utils/package.json index 7626ec4fa6b5..c32a1c82619d 100644 --- a/packages/runtime/runtime-utils/package.json +++ b/packages/runtime/runtime-utils/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/runtime/test-runtime-utils/package.json b/packages/runtime/test-runtime-utils/package.json index a7f36f493208..dfea6a131a14 100644 --- a/packages/runtime/test-runtime-utils/package.json +++ b/packages/runtime/test-runtime-utils/package.json @@ -48,45 +48,45 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/service-clients/azure-client/package.json b/packages/service-clients/azure-client/package.json index 72edbbac10ec..2a647f54969f 100644 --- a/packages/service-clients/azure-client/package.json +++ b/packages/service-clients/azure-client/package.json @@ -48,37 +48,35 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "pack:tests": "tar -cf ./azure-client.test-files.tar ./dist/test ./lib/test", @@ -88,6 +86,8 @@ "test:realsvc:local:run": "mocha --recursive lib/test --timeout 10000", "test:realsvc:tinylicious": "start-server-and-test start:tinylicious:test 7070 test:realsvc:local:run", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/service-clients/end-to-end-tests/azure-client/package.json b/packages/service-clients/end-to-end-tests/azure-client/package.json index 1ea556499414..6bd50d6702d3 100644 --- a/packages/service-clients/end-to-end-tests/azure-client/package.json +++ b/packages/service-clients/end-to-end-tests/azure-client/package.json @@ -13,21 +13,20 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:test": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "start:tinylicious:test": "cross-env PORT=7071 tinylicious > tinylicious.log 2>&1", "test": "npm run test:realsvc", - "test:coverage": "c8 npm test", "test:realsvc": "npm run test:realsvc:tinylicious", "test:realsvc:azure": "cross-env FLUID_CLIENT=azure npm run test:realsvc:azure:run -- --driver=r11s --r11sEndpointName=frs", "test:realsvc:azure:run": "mocha --exit --timeout 20000 --config src/test/.mocharc.cjs", @@ -35,7 +34,8 @@ "test:realsvc:tinylicious:report": "npm run test:realsvc:tinylicious", "test:realsvc:tinylicious:run": "npm run test:realsvc:azure:run -- --driver=t9s", "test:realsvc:verbose": "cross-env FLUID_TEST_VERBOSE=msgs npm run test:realsvc", - "test:realsvc:veryverbose": "cross-env FLUID_TEST_VERBOSE=msgs+telem npm run test:realsvc" + "test:realsvc:veryverbose": "cross-env FLUID_TEST_VERBOSE=msgs+telem npm run test:realsvc", + "tsc-test": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, @@ -108,9 +108,9 @@ }, "fluidBuild": { "tasks": { - "build:test": [ - "^api-extractor:esnext", - "^build:esnext", + "tsc-test": [ + "^generate-entrypoints-esnext", + "^esnext", "^tsc" ] } diff --git a/packages/service-clients/end-to-end-tests/odsp-client/package.json b/packages/service-clients/end-to-end-tests/odsp-client/package.json index ca2f450ea414..e20658135dbd 100644 --- a/packages/service-clients/end-to-end-tests/odsp-client/package.json +++ b/packages/service-clients/end-to-end-tests/odsp-client/package.json @@ -13,23 +13,23 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:test": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:realsvc:odsp", - "test:coverage": "c8 npm test", "test:realsvc:odsp": "npm run test:realsvc:odsp:run -- --driver=odsp --odspEndpointName=odsp", "test:realsvc:odsp:run": "mocha --exit --timeout 20000 --config src/test/.mocharc.cjs", - "test:realsvc:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:realsvc:odsp" + "test:realsvc:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:realsvc:odsp", + "tsc-test": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, @@ -91,9 +91,9 @@ }, "fluidBuild": { "tasks": { - "build:test": [ - "^api-extractor:esnext", - "^build:esnext", + "tsc-test": [ + "^generate-entrypoints-esnext", + "^esnext", "^tsc" ] } diff --git a/packages/service-clients/odsp-client/package.json b/packages/service-clients/odsp-client/package.json index 1c7dbd956a23..4997d89a11d7 100644 --- a/packages/service-clients/odsp-client/package.json +++ b/packages/service-clients/odsp-client/package.json @@ -48,38 +48,38 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/packages/service-clients/tinylicious-client/package.json b/packages/service-clients/tinylicious-client/package.json index 91686a6b4267..edb7523c5b35 100644 --- a/packages/service-clients/tinylicious-client/package.json +++ b/packages/service-clients/tinylicious-client/package.json @@ -48,31 +48,29 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileBeta beta --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileBeta beta --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileBeta beta --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileBeta beta --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "start:tinylicious:test": "tinylicious > tinylicious.log 2>&1", @@ -81,6 +79,8 @@ "test:realsvc:tinylicious": "start-server-and-test start:tinylicious:test 7070 test:realsvc:tinylicious:run", "test:realsvc:tinylicious:run": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/test/functional-tests/package.json b/packages/test/functional-tests/package.json index 66c758443790..98327a7a423f 100644 --- a/packages/test/functional-tests/package.json +++ b/packages/test/functional-tests/package.json @@ -14,20 +14,20 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", diff --git a/packages/test/local-server-stress-tests/package.json b/packages/test/local-server-stress-tests/package.json index 433bec73716e..5ccbbefccb6c 100644 --- a/packages/test/local-server-stress-tests/package.json +++ b/packages/test/local-server-stress-tests/package.json @@ -14,22 +14,22 @@ "sideEffects": false, "type": "commonjs", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:test": "tsc --project ./src/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "mocha \"lib/test/**/*.spec.*js\" --exit", - "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha" + "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", + "tsc-test": "tsc --project ./src/tsconfig.json" }, "c8": { "all": true, @@ -103,9 +103,9 @@ }, "fluidBuild": { "tasks": { - "build:test": [ + "tsc-test": [ "^tsc", - "^api-extractor:commonjs", + "^generate-entrypoints-commonjs", "@fluidframework/id-compressor#build:test", "@fluidframework/sequence#build:test", "@fluidframework/map#build:test", diff --git a/packages/test/local-server-tests/package.json b/packages/test/local-server-tests/package.json index bc4eafd3055e..abaa6432b812 100644 --- a/packages/test/local-server-tests/package.json +++ b/packages/test/local-server-tests/package.json @@ -14,22 +14,22 @@ "sideEffects": false, "type": "commonjs", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:test": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "mocha \"lib/test/**/*.spec.*js\"", - "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha" + "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", + "tsc-test": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, @@ -99,9 +99,9 @@ }, "fluidBuild": { "tasks": { - "build:test": [ + "tsc-test": [ "^tsc", - "^api-extractor:commonjs" + "^generate-entrypoints-commonjs" ] } }, diff --git a/packages/test/mocha-test-setup/package.json b/packages/test/mocha-test-setup/package.json index 766889833176..4d2380b42f5c 100644 --- a/packages/test/mocha-test-setup/package.json +++ b/packages/test/mocha-test-setup/package.json @@ -30,26 +30,26 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack . --exclude-entrypoints ./mocharc-common", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./mocharc-common", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/packages/test/snapshots/package.json b/packages/test/snapshots/package.json index b264cb17e500..ea1868257677 100644 --- a/packages/test/snapshots/package.json +++ b/packages/test/snapshots/package.json @@ -1,108 +1,108 @@ { - "name": "@fluid-internal/test-snapshots", - "version": "2.70.0", - "private": true, - "description": "Comprehensive test of snapshot logic.", - "homepage": "https://fluidframework.com", - "repository": { - "type": "git", - "url": "https://github.com/microsoft/FluidFramework.git", - "directory": "packages/test/snapshots" - }, - "license": "MIT", - "author": "Microsoft and contributors", - "sideEffects": false, - "type": "module", - "scripts": { - "build": "fluid-build . --task build", - "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", - "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", - "eslint": "eslint --format stylish src", - "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", - "lint": "fluid-build . --task lint", - "lint:fix": "fluid-build . --task eslint:fix --task format", - "test": "npm run test:mocha", - "test:coverage": "c8 npm test", - "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", - "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", - "test:mocha:esm": "mocha", - "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "test:new": "mocha --experimental-worker \"lib/test/generate/new.spec.*js\"", - "test:update": "mocha --experimental-worker \"lib/test/generate/update.spec.*js\"", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" - }, - "c8": { - "all": true, - "cache-dir": "nyc/.cache", - "exclude": [ - "src/test/**/*.*ts", - "lib/test/**/*.*js" - ], - "exclude-after-remap": false, - "include": [ - "src/**/*.*ts", - "lib/**/*.*js" - ], - "report-dir": "nyc/report", - "reporter": [ - "cobertura", - "html", - "text" - ], - "temp-directory": "nyc/.nyc_output" - }, - "dependencies": { - "@fluid-experimental/ink": "workspace:~", - "@fluid-experimental/sequence-deprecated": "workspace:~", - "@fluid-internal/replay-tool": "workspace:~", - "@fluidframework/cell": "workspace:~", - "@fluidframework/container-definitions": "workspace:~", - "@fluidframework/container-loader": "workspace:~", - "@fluidframework/core-interfaces": "workspace:~", - "@fluidframework/core-utils": "workspace:~", - "@fluidframework/counter": "workspace:~", - "@fluidframework/driver-definitions": "workspace:~", - "@fluidframework/driver-utils": "workspace:~", - "@fluidframework/file-driver": "workspace:~", - "@fluidframework/local-driver": "workspace:~", - "@fluidframework/map": "workspace:~", - "@fluidframework/matrix": "workspace:~", - "@fluidframework/ordered-collection": "workspace:~", - "@fluidframework/register-collection": "workspace:~", - "@fluidframework/replay-driver": "workspace:~", - "@fluidframework/sequence": "workspace:~", - "@fluidframework/server-local-server": "^7.0.0", - "@fluidframework/test-utils": "workspace:~", - "mocha": "^10.8.2" - }, - "devDependencies": { - "@biomejs/biome": "~1.9.3", - "@fluid-internal/mocha-test-setup": "workspace:~", - "@fluid-tools/build-cli": "^0.58.3", - "@fluidframework/build-common": "^2.0.3", - "@fluidframework/build-tools": "^0.58.3", - "@fluidframework/eslint-config-fluid": "^6.1.0", - "@types/mocha": "^10.0.10", - "@types/node": "^18.19.0", - "c8": "^10.1.3", - "copyfiles": "^2.4.1", - "cross-env": "^7.0.3", - "eslint": "~8.57.1", - "mocha": "^10.8.2", - "mocha-multi-reporters": "^1.5.1", - "rimraf": "^4.4.0", - "typescript": "~5.4.5" - }, - "typeValidation": { - "disabled": true - } + "name": "@fluid-internal/test-snapshots", + "version": "2.70.0", + "private": true, + "description": "Comprehensive test of snapshot logic.", + "homepage": "https://fluidframework.com", + "repository": { + "type": "git", + "url": "https://github.com/microsoft/FluidFramework.git", + "directory": "packages/test/snapshots" + }, + "license": "MIT", + "author": "Microsoft and contributors", + "sideEffects": false, + "type": "module", + "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", + "build": "fluid-build . --task build", + "build:compile": "fluid-build . --task compile", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:format": "npm run biome-check", + "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", + "coverage": "c8 npm test", + "eslint": "eslint --format stylish src", + "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", + "lint": "fluid-build . --task lint", + "lint:fix": "fluid-build . --task eslint:fix --task format", + "test": "npm run test:mocha", + "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", + "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", + "test:mocha:esm": "mocha", + "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", + "test:new": "mocha --experimental-worker \"lib/test/generate/new.spec.*js\"", + "test:update": "mocha --experimental-worker \"lib/test/generate/update.spec.*js\"", + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" + }, + "c8": { + "all": true, + "cache-dir": "nyc/.cache", + "exclude": [ + "src/test/**/*.*ts", + "lib/test/**/*.*js" + ], + "exclude-after-remap": false, + "include": [ + "src/**/*.*ts", + "lib/**/*.*js" + ], + "report-dir": "nyc/report", + "reporter": [ + "cobertura", + "html", + "text" + ], + "temp-directory": "nyc/.nyc_output" + }, + "dependencies": { + "@fluid-experimental/ink": "workspace:~", + "@fluid-experimental/sequence-deprecated": "workspace:~", + "@fluid-internal/replay-tool": "workspace:~", + "@fluidframework/cell": "workspace:~", + "@fluidframework/container-definitions": "workspace:~", + "@fluidframework/container-loader": "workspace:~", + "@fluidframework/core-interfaces": "workspace:~", + "@fluidframework/core-utils": "workspace:~", + "@fluidframework/counter": "workspace:~", + "@fluidframework/driver-definitions": "workspace:~", + "@fluidframework/driver-utils": "workspace:~", + "@fluidframework/file-driver": "workspace:~", + "@fluidframework/local-driver": "workspace:~", + "@fluidframework/map": "workspace:~", + "@fluidframework/matrix": "workspace:~", + "@fluidframework/ordered-collection": "workspace:~", + "@fluidframework/register-collection": "workspace:~", + "@fluidframework/replay-driver": "workspace:~", + "@fluidframework/sequence": "workspace:~", + "@fluidframework/server-local-server": "^7.0.0", + "@fluidframework/test-utils": "workspace:~", + "mocha": "^10.8.2" + }, + "devDependencies": { + "@biomejs/biome": "~1.9.3", + "@fluid-internal/mocha-test-setup": "workspace:~", + "@fluid-tools/build-cli": "^0.58.3", + "@fluidframework/build-common": "^2.0.3", + "@fluidframework/build-tools": "^0.58.3", + "@fluidframework/eslint-config-fluid": "^6.1.0", + "@types/mocha": "^10.0.10", + "@types/node": "^18.19.0", + "c8": "^10.1.3", + "copyfiles": "^2.4.1", + "cross-env": "^7.0.3", + "eslint": "~8.57.1", + "mocha": "^10.8.2", + "mocha-multi-reporters": "^1.5.1", + "rimraf": "^4.4.0", + "typescript": "~5.4.5" + }, + "typeValidation": { + "disabled": true + } } diff --git a/packages/test/stochastic-test-utils/package.json b/packages/test/stochastic-test-utils/package.json index 241c10725b5f..3762ad264589 100644 --- a/packages/test/stochastic-test-utils/package.json +++ b/packages/test/stochastic-test-utils/package.json @@ -37,38 +37,38 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack . --exclude-entrypoints ./internal/test/utils", "bench": "mocha --recursive dist/test --timeout 999999 --perfMode --parentProcess --fgrep @Benchmark --fgrep @ExecutionTime --reporter @fluid-tools/benchmark/dist/MochaReporter.js", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./internal/test/utils", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "test:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/packages/test/test-driver-definitions/package.json b/packages/test/test-driver-definitions/package.json index 41b9271d532f..0f1d4f7fde1b 100644 --- a/packages/test/test-driver-definitions/package.json +++ b/packages/test/test-driver-definitions/package.json @@ -25,25 +25,25 @@ "main": "", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/packages/test/test-drivers/package.json b/packages/test/test-drivers/package.json index 985f1d0e348f..4a30af8951e5 100644 --- a/packages/test/test-drivers/package.json +++ b/packages/test/test-drivers/package.json @@ -27,25 +27,25 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/packages/test/test-end-to-end-tests/package.json b/packages/test/test-end-to-end-tests/package.json index 184815dd6275..c70ddc84f017 100644 --- a/packages/test/test-end-to-end-tests/package.json +++ b/packages/test/test-end-to-end-tests/package.json @@ -13,18 +13,17 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "start:tinylicious:test": "tinylicious > tinylicious.log 2>&1", @@ -53,7 +52,8 @@ "test:realsvc:tinylicious:report": "npm run test:realsvc:tinylicious", "test:realsvc:tinylicious:report:full": "cross-env fluid__test__backCompat=FULL npm run test:realsvc:tinylicious", "test:realsvc:tinylicious:run": "npm run test:realsvc:run -- --driver=t9s --timeout=5s", - "test:realsvc:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:realsvc" + "test:realsvc:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:realsvc", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, @@ -151,9 +151,9 @@ }, "fluidBuild": { "tasks": { - "build:test:esm": [ - "^build:esnext", - "build:genver", + "tsc-test-esm": [ + "^esnext", + "generate-version", "^tsc" ] } diff --git a/packages/test/test-pairwise-generator/package.json b/packages/test/test-pairwise-generator/package.json index dbf744bc53c0..d593edb414ac 100644 --- a/packages/test/test-pairwise-generator/package.json +++ b/packages/test/test-pairwise-generator/package.json @@ -27,24 +27,24 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", + "api-extractor-exports-esm-index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:index": "api-extractor run --config api-extractor/api-extractor-lint-index.cjs.json", - "check:exports:esm:index": "api-extractor run --config api-extractor/api-extractor-lint-index.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", @@ -102,7 +102,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/test/test-service-load/package.json b/packages/test/test-service-load/package.json index 7a9af75408e6..6825eba47ca0 100644 --- a/packages/test/test-service-load/package.json +++ b/packages/test/test-service-load/package.json @@ -13,25 +13,23 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc", "debug": "node --inspect-brk ./dist/main.js --debug", "debug:mini": "node --inspect-brk ./dist/main.js --debug --profile mini", "debug:runner": "node ./dist/main.js --debug --profile debug", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "full": "node ./dist/main.js --profile full", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "start": "node ./dist/main.js", @@ -51,6 +49,8 @@ "test:stress:tinylicious:report": "npm run test:stress:tinylicious", "test:stress:tinylicious:run": "npm run test:stress:run", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize", "usePrereleaseDeps": "node ./scripts/usePrereleaseDeps.js" diff --git a/packages/test/test-utils/package.json b/packages/test/test-utils/package.json index e527e5b493c5..38d0a044988a 100644 --- a/packages/test/test-utils/package.json +++ b/packages/test/test-utils/package.json @@ -48,38 +48,36 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:compile": "fluid-build . --task compile", "build:compile:min": "npm run build:compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", @@ -88,6 +86,8 @@ "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/test/test-version-utils/package.json b/packages/test/test-version-utils/package.json index 2fba81f4258d..51eeb009d3c6 100644 --- a/packages/test/test-version-utils/package.json +++ b/packages/test/test-version-utils/package.json @@ -24,31 +24,31 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "attw": "attw --pack . --exclude-entrypoints ./mocharc-common", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack . --exclude-entrypoints ./mocharc-common", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "build:test": "npm run tsc-test-esm", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", "check:exports:index": "api-extractor run --config api-extractor/api-extractor-lint-index.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp node_modules/.legacy nyc", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", "test:mocha": "mocha --timeout=10000", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", - "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" + "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json" }, "c8": { "all": true, diff --git a/packages/test/types_jest-environment-puppeteer/package.json b/packages/test/types_jest-environment-puppeteer/package.json index 437534fcb957..a73b696f5d12 100644 --- a/packages/test/types_jest-environment-puppeteer/package.json +++ b/packages/test/types_jest-environment-puppeteer/package.json @@ -14,12 +14,12 @@ "main": "", "types": "index.d.ts", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob \"*.tsbuildinfo\" \"*.build.log\"", - "format": "npm run format:biome", - "format:biome": "biome check . --write" + "format": "npm run biome-format" }, "devDependencies": { "@biomejs/biome": "~1.9.3", diff --git a/packages/tools/changelog-generator-wrapper/package.json b/packages/tools/changelog-generator-wrapper/package.json index f50ea123d8f9..5a2523d84627 100644 --- a/packages/tools/changelog-generator-wrapper/package.json +++ b/packages/tools/changelog-generator-wrapper/package.json @@ -13,16 +13,16 @@ "type": "commonjs", "main": "./src/index.js", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "concurrently npm:build:compile npm:lint", "build:commonjs": "npm run tsc", "build:compile": "npm run build:commonjs", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\"", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "format": "npm run biome-format", "lint": "npm run eslint", "lint:fix": "npm run format && npm run eslint:fix", "tsc": "echo \"No build required.\"" diff --git a/packages/tools/devtools/devtools-browser-extension/package.json b/packages/tools/devtools/devtools-browser-extension/package.json index 929cdb6ba2ef..a15569c17d43 100644 --- a/packages/tools/devtools/devtools-browser-extension/package.json +++ b/packages/tools/devtools/devtools-browser-extension/package.json @@ -13,40 +13,40 @@ "author": "Microsoft and contributors", "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build-and-test": "npm run build && npm run test", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./e2e-tests/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./e2e-tests/tsconfig.json", + "build:format-first": "npm run format && npm run build", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", "build:webpack": "npm run webpack", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob coverage dist lib nyc \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "compile:format-first": "npm run format && npm run build:compile", + "coverage": "c8 npm test", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format-and-build": "npm run format && npm run build", - "format-and-compile": "npm run format && npm run build:compile", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "good-fences": "gf", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "rebuild": "npm run clean && npm run build", "start:client:test": "webpack serve --config webpack.test.cjs", "test": "concurrently npm:test:mocha npm:test:jest", - "test:coverage": "c8 npm test", "test:end-to-end": "npm run test:jest", "test:jest": "jest --ci", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 jest --ci", "test:mocha": "npm run test:mocha:esm && npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS MOCHA_SPEC=dist/tsc/test mocha", "test:mocha:esm": "cross-env MOCHA_SPEC=lib/tsc/test mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run mocha -- --verbose", "test:unit": "npm run test:mocha", - "test:verbose": "concurrently npm:test:mocha:verbose npm:test:jest:verbose", + "test:verbose": "concurrently npm:test:mocha:verbose npm:jest:verbose", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./e2e-tests/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./e2e-tests/tsconfig.json", "webpack": "webpack", "webpack:dev": "webpack --env development" }, diff --git a/packages/tools/devtools/devtools-core/package.json b/packages/tools/devtools/devtools-core/package.json index c113ef2cfb9a..e2f242c718c1 100644 --- a/packages/tools/devtools/devtools-core/package.json +++ b/packages/tools/devtools/devtools-core/package.json @@ -48,45 +48,45 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:format-first": "npm run format && npm run build", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob _api-extractor-temp nyc dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "compile:format-first": "npm run format && npm run build:compile", + "coverage": "c8 npm test", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format-and-build": "npm run format && npm run build", - "format-and-compile": "npm run format && npm run build:compile", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "place:cjs:package-stub": "copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist", "rebuild": "npm run clean && npm run build", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha --", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && npm run place:cjs:package-stub", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "tsc:watch": "npm run place:cjs:package-stub && fluid-tsc commonjs --project ./tsconfig.cjs.json --watch", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" diff --git a/packages/tools/devtools/devtools-test-app/package.json b/packages/tools/devtools/devtools-test-app/package.json index 71f386a3958a..defb9ac56aa8 100644 --- a/packages/tools/devtools/devtools-test-app/package.json +++ b/packages/tools/devtools/devtools-test-app/package.json @@ -14,25 +14,25 @@ "sideEffects": false, "type": "module", "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "build:format-first": "npm run format && npm run build", + "check:format": "npm run biome-check", "clean": "rimraf --glob _api-extractor-temp coverage dist lib nyc \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "compile:format-first": "npm run format && npm run build:compile", + "coverage": "npm run test:jest:coverage", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format-and-build": "npm run format && npm run build", - "format-and-compile": "npm run format && npm run build:compile", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "rebuild": "npm run clean && npm run build", "start": "concurrently \"npm:watch:*\" npm:start:client", "start:client": "webpack serve --config webpack.config.cjs", "test": "npm run test:jest", - "test:coverage": "npm run test:jest:coverage", "test:jest": "jest --detectOpenHandles", "test:jest:coverage": "jest --detectOpenHandles --coverage --ci", "watch:devtools-core": "tsc --watch --project ../devtools-core/tsconfig.json --preserveWatchOutput", diff --git a/packages/tools/devtools/devtools-view/package.json b/packages/tools/devtools/devtools-view/package.json index 9690fe55dd84..c2f5558d2302 100644 --- a/packages/tools/devtools/devtools-view/package.json +++ b/packages/tools/devtools/devtools-view/package.json @@ -28,36 +28,36 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "scripts": { + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "fluid-tsc module --project ./tsconfig.esm.json && copyfiles -f ../../../../common/build/build-common/src/esm/package.json ./lib", - "build:test": "concurrently npm:build:test:cjs npm:build:test:esm", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "fluid-tsc module --project ./src/test/tsconfig.esm.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", + "build:format-first": "npm run format && npm run build", + "build:test": "concurrently npm:tsc-test-cjs npm:tsc-test-esm", "check:exports": "api-extractor run --config ./api-extractor-lint.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "check:format": "npm run biome-check", "clean": "rimraf --glob _api-extractor-temp coverage dist lib nyc \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "compile:format-first": "npm run format && npm run build:compile", + "coverage": "npm run test:jest:coverage", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format-and-build": "npm run format && npm run build", - "format-and-compile": "npm run format && npm run build:compile", - "format:biome": "biome check . --write", + "esnext": "fluid-tsc module --project ./tsconfig.esm.json && copyfiles -f ../../../../common/build/build-common/src/esm/package.json ./lib", + "format": "npm run biome-format", + "jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:jest", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "rebuild": "npm run clean && npm run build", "test": "npm run test:jest", - "test:coverage": "npm run test:jest:coverage", "test:jest": "pnpm test:jest:cjs && echo skip per fluentui issue 30778 - pnpm test:jest:esm", "test:jest:cjs": "jest --ci --roots ./dist", "test:jest:coverage": "jest --coverage --ci", "test:jest:esm": "cross-env NODE_OPTIONS=--experimental-vm-modules jest --roots ./lib", - "test:jest:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:jest", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "fluid-tsc module --project ./src/test/tsconfig.esm.json", "tsc:watch": "copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist && fluid-tsc commonjs --watch --project ./tsconfig.cjs.json" }, "dependencies": { @@ -137,7 +137,7 @@ "fluidBuild": { "tasks": { "check:exports": [ - "build:esnext" + "esnext" ] } }, diff --git a/packages/tools/devtools/devtools/package.json b/packages/tools/devtools/devtools/package.json index 958b0227bfb2..47e49ca0688d 100644 --- a/packages/tools/devtools/devtools/package.json +++ b/packages/tools/devtools/devtools/package.json @@ -58,32 +58,32 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", + "api-extractor-exports-cjs-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", + "api-extractor-exports-esm-beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.cjs.json", - "check:exports:cjs:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:alpha": "api-extractor run --config api-extractor/api-extractor-lint-alpha.esm.json", - "check:exports:esm:beta": "api-extractor run --config api-extractor/api-extractor-lint-beta.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:format-first": "npm run format && npm run build", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob _api-extractor-temp nyc dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\"", + "compile:format-first": "npm run format && npm run build:compile", "eslint": "eslint src", "eslint:fix": "eslint src --fix", - "format": "npm run format:biome", - "format-and-build": "npm run format && npm run build", - "format-and-compile": "npm run format && npm run build:compile", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "place:cjs:package-stub": "copyfiles -f ../../../../common/build/build-common/src/cjs/package.json ./dist", @@ -144,7 +144,7 @@ }, "fluidBuild": { "tasks": { - "build:esnext": [ + "esnext": [ "...", "typetests:gen" ], diff --git a/packages/tools/fetch-tool/package.json b/packages/tools/fetch-tool/package.json index bdd4f8429bf8..d29a3253c791 100644 --- a/packages/tools/fetch-tool/package.json +++ b/packages/tools/fetch-tool/package.json @@ -15,16 +15,16 @@ "fluid-fetch": "bin/fluid-fetch" }, "scripts": { + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist \"**/*.tsbuildinfo\" \"**/*.build.log\" lib", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/packages/tools/fluid-runner/package.json b/packages/tools/fluid-runner/package.json index 900c0bce3dd0..26ae6c87328f 100644 --- a/packages/tools/fluid-runner/package.json +++ b/packages/tools/fluid-runner/package.json @@ -50,46 +50,46 @@ }, "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" nyc _api-extractor-temp outputFolder", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src \"bin/*\"", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/tools/replay-tool/package.json b/packages/tools/replay-tool/package.json index aaf4ecfc594f..539a338980b9 100644 --- a/packages/tools/replay-tool/package.json +++ b/packages/tools/replay-tool/package.json @@ -31,17 +31,17 @@ "replayTool": "bin/replayTool" }, "scripts": { + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:compile": "fluid-build . --task compile", - "build:esnext": "tsc --project ./tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:format": "npm run check:biome", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist" diff --git a/packages/utils/odsp-doclib-utils/package.json b/packages/utils/odsp-doclib-utils/package.json index 21fc7c888042..c2a547fe75e7 100644 --- a/packages/utils/odsp-doclib-utils/package.json +++ b/packages/utils/odsp-doclib-utils/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/utils/telemetry-utils/package.json b/packages/utils/telemetry-utils/package.json index 53e854176bcb..a27618843326 100644 --- a/packages/utils/telemetry-utils/package.json +++ b/packages/utils/telemetry-utils/package.json @@ -48,47 +48,47 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-api-reports-current": "api-extractor run --config api-extractor/api-extractor.current.json", + "api-extractor-ci-api-reports-legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "api-reports-current": "api-extractor run --local --config api-extractor/api-extractor.current.json", + "api-reports-legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", - "build:api-reports": "concurrently \"npm:build:api-reports:*\"", - "build:api-reports:current": "api-extractor run --local --config api-extractor/api-extractor.current.json", - "build:api-reports:legacy": "api-extractor run --local --config api-extractor/api-extractor.legacy.json", + "build:api-reports": "concurrently \"npm:api-reports-*\"", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", "bump-version": "npm version minor --no-push --no-git-tag-version", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.cjs.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:legacy": "api-extractor run --config api-extractor/api-extractor-lint-legacy.esm.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:api-reports": "concurrently \"npm:ci:build:api-reports:*\"", - "ci:build:api-reports:current": "api-extractor run --config api-extractor/api-extractor.current.json", - "ci:build:api-reports:legacy": "api-extractor run --config api-extractor/api-extractor.legacy.json", - "ci:build:docs": "api-extractor run", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", + "ci:build:api-reports": "concurrently \"npm:api-extractor-ci-api-reports-*\"", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outFileLegacyBeta legacy --outDir ./lib --node10TypeCompat", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" }, diff --git a/packages/utils/tool-utils/package.json b/packages/utils/tool-utils/package.json index a737b06c93cc..9548d2672baa 100644 --- a/packages/utils/tool-utils/package.json +++ b/packages/utils/tool-utils/package.json @@ -38,39 +38,39 @@ "types": "lib/public.d.ts", "scripts": { "api": "fluid-build . --task api", - "api-extractor:commonjs": "flub generate entrypoints --outDir ./dist", - "api-extractor:esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", + "api-extractor": "api-extractor run --local", + "api-extractor-ci-docs": "api-extractor run", + "api-extractor-exports-bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", + "api-extractor-exports-cjs-public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", + "api-extractor-exports-esm-public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", + "attw": "attw --pack .", + "biome-check": "biome check .", + "biome-format": "biome check . --write", "build": "fluid-build . --task build", "build:commonjs": "fluid-build . --task commonjs", "build:compile": "fluid-build . --task compile", - "build:docs": "api-extractor run --local", - "build:esnext": "tsc --project ./tsconfig.json", - "build:genver": "gen-version", - "build:test": "npm run build:test:esm && npm run build:test:cjs", - "build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", - "build:test:esm": "tsc --project ./src/test/tsconfig.json", - "check:are-the-types-wrong": "attw --pack .", - "check:biome": "biome check .", - "check:exports": "concurrently \"npm:check:exports:*\"", - "check:exports:bundle-release-tags": "api-extractor run --config api-extractor/api-extractor-lint-bundle.json", - "check:exports:cjs:public": "api-extractor run --config api-extractor/api-extractor-lint-public.cjs.json", - "check:exports:esm:public": "api-extractor run --config api-extractor/api-extractor-lint-public.esm.json", - "check:format": "npm run check:biome", - "ci:build:docs": "api-extractor run", + "build:test": "npm run tsc-test-esm && npm run tsc-test-cjs", + "check:exports": "concurrently \"npm:api-extractor-exports-bundle-release-*\"", + "check:format": "npm run biome-check", "clean": "rimraf --glob dist lib {alpha,beta,internal,legacy}.d.ts \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc", + "coverage": "c8 npm test", "eslint": "eslint --format stylish src", "eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout", - "format": "npm run format:biome", - "format:biome": "biome check . --write", + "esnext": "tsc --project ./tsconfig.json", + "format": "npm run biome-format", + "generate-entrypoints-commonjs": "flub generate entrypoints --outDir ./dist", + "generate-entrypoints-esnext": "flub generate entrypoints --outDir ./lib --node10TypeCompat", + "generate-version": "gen-version", "lint": "fluid-build . --task lint", "lint:fix": "fluid-build . --task eslint:fix --task format", "test": "npm run test:mocha", - "test:coverage": "c8 npm test", "test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs", "test:mocha:cjs": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha", "test:mocha:esm": "mocha", "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha", "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist", + "tsc-test-cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json", + "tsc-test-esm": "tsc --project ./src/test/tsconfig.json", "typetests:gen": "flub generate typetests --dir . -v", "typetests:prepare": "flub typetests --dir . --reset --previous --normalize" },