Skip to content

Commit f870dad

Browse files
committed
build: glob
1 parent a06bca8 commit f870dad

6 files changed

Lines changed: 9 additions & 8 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
},
2727
"devDependencies": {
2828
"@biomejs/biome": "^2.0.5",
29-
"@changesets/cli": "^2.29.8"
29+
"@changesets/cli": "^2.29.8",
30+
"glob": "^13.0.6"
3031
}
3132
}

packages/cli-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"build": "shx chmod +x src/*.js",
3939
"prelint": "tsc --noemit --module es2022 --maxNodeModuleJsDepth 0 --project ./jsconfig.json",
4040
"test": "npm run test:unit",
41-
"test:node18": "node --test --test-reporter=spec --test src/*.test.js",
41+
"test:node18": "glob -c \"node --test --test-reporter=spec\" \"src/*.test.js\"",
4242
"test:unit": "node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --test src/*.test.js"
4343
},
4444
"bin": {

packages/cli-test/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@
3333
"docs": "npx typedoc --plugin typedoc-plugin-markdown",
3434
"prepack": "npm run build",
3535
"test": "npm run test:unit",
36-
"test:node18": "npm run build && cross-env SLACK_CLI_PATH=/doesnt/matter node --test --test-reporter=spec --import tsx --test src/*.test.ts src/*/*.test.ts src/*/*/*.test.ts",
37-
"test:unit": "npm run build && cross-env SLACK_CLI_PATH=/doesnt/matter node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts src/*/*.test.ts src/*/*/*.test.ts"
36+
"test:node18": "npm run build && cross-env SLACK_CLI_PATH=/doesnt/matter glob -c \"node --test --test-reporter=spec --import tsx\" \"src/**/*.test.ts\"",
37+
"test:unit": "npm run build && cross-env SLACK_CLI_PATH=/doesnt/matter node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/**/*.test.ts"
3838
},
3939
"dependencies": {
4040
"tree-kill": "^1.2.2",

packages/oauth/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"docs": "npx typedoc --plugin typedoc-plugin-markdown",
3737
"prepack": "npm run build",
3838
"test": "npm run test:unit",
39-
"test:node18": "npm run build && node --test --test-reporter=spec --import tsx --test src/*.test.ts src/*/*.test.ts",
40-
"test:unit": "npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts src/*/*.test.ts",
39+
"test:node18": "npm run build && glob -c \"node --test --test-reporter=spec --import tsx\" \"src/**/*.test.ts\"",
40+
"test:unit": "npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/**/*.test.ts",
4141
"watch": "npx nodemon --watch 'src' --ext 'ts' --exec npm run build"
4242
},
4343
"dependencies": {

packages/socket-mode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"docs": "npx typedoc --plugin typedoc-plugin-markdown",
4545
"prepack": "npm run build",
4646
"test": "npm run test:unit && npm run test:integration",
47-
"test:node18": "npm run build && node --test --test-reporter=spec --import tsx --test src/*.test.ts && npm run test:integration",
47+
"test:node18": "npm run build && glob -c \"node --test --test-reporter=spec --import tsx\" \"src/*.test.ts\" && npm run test:integration",
4848
"test:integration": "npm run build && node --import tsx --test test/integration.test.js",
4949
"test:unit": "npm run build && node --experimental-test-coverage --test-reporter=spec --test-reporter-destination=stdout --test-reporter=lcov --test-reporter-destination=lcov.info --test-reporter=junit --test-reporter-destination=test-results.xml --import tsx --test src/*.test.ts",
5050
"watch": "npx nodemon --watch 'src' --ext 'ts' --exec npm test"

packages/web-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"docs": "npx typedoc --plugin typedoc-plugin-markdown",
4242
"prepack": "npm run build",
4343
"test": "npm run test:unit",
44-
"test:node18": "npm run build && node --test --test-reporter=spec --import tsx --test src/*.test.ts",
44+
"test:node18": "npm run build && glob -c \"node --test --test-reporter=spec --import tsx\" \"src/*.test.ts\"",
4545
"test:integration": "npm run build && node test/integration/commonjs-project/index.js && node test/integration/esm-project/index.mjs && npm run test:integration:ts",
4646
"test:integration:ts": "cd test/integration/ts-4.7-project && npm i && npm run build",
4747
"test:types": "tsd",

0 commit comments

Comments
 (0)