Skip to content

Commit 8badc73

Browse files
committed
test: improve recepies
1 parent 194b31f commit 8badc73

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
max_line_length = 100
33
indent_style = space
44
indent_size = 2
5+
end_of_line = lf

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
"type": "git",
1010
"url": "git+https://github.com/esbuild-plugins-community/esbuild-plugin-webpack-analyzer.git"
1111
},
12+
"keywords": [
13+
"esbuild",
14+
"esbuild-plugin",
15+
"plugin",
16+
"analyzer",
17+
"bundle-size"
18+
],
1219
"scripts": {
1320
"prepare": "husky",
1421
"prepublishOnly": "pnpm run analyze:js&&pnpm run check-types&&pnpm run test",
@@ -17,8 +24,8 @@
1724
"check-types": "tsc --noEmit",
1825
"build": "rm -rf ./dist&&tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json&&node --import tsx ./scripts/genPackageFiles.ts&&pnpm run gen-size-badge",
1926
"build-watch": "rm -rf ./dist&&tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json --watch&&node --import tsx ./scripts/genPackageFiles.ts",
20-
"test": "pnpm run build&&node --test ./test/import*.*js&&c8 node --import tsx --test ./test/*.test.*&&pnpm run gen-coverage-badge",
21-
"test-watch": "pnpm run build&&node --import tsx --test --watch ./test/*.test.*",
27+
"test": "pnpm run build&&node --test --test-reporter=spec ./test/import*.*js&&c8 node --import tsx --test --test-reporter=spec ./test/*.test.*&&pnpm run gen-coverage-badge",
28+
"test-watch": "pnpm run build&&node --import tsx --test --test-reporter=spec --watch ./test/*.test.*",
2229
"gen-coverage-badge": "node --import tsx ./scripts/genCoverageBadge.ts",
2330
"gen-size-badge": "node --import tsx ./scripts/genSizeBadges.ts"
2431
},

0 commit comments

Comments
 (0)