Skip to content

Commit 720f61a

Browse files
committed
chore: re-organize package.json
1 parent c0fd2ea commit 720f61a

File tree

2 files changed

+68
-84
lines changed

2 files changed

+68
-84
lines changed

package-lock.json

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 67 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,53 @@
22
"name": "poku",
33
"version": "1.19.0",
44
"description": "🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.",
5+
"license": "MIT",
56
"main": "./lib/index.js",
7+
"bin": {
8+
"poku": "./lib/bin/index.js"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "git+https://github.com/wellwelwel/poku.git"
13+
},
14+
"homepage": "https://poku.io",
15+
"bugs": {
16+
"url": "https://github.com/wellwelwel/poku/issues"
17+
},
18+
"author": "https://github.com/wellwelwel",
19+
"files": [
20+
"lib"
21+
],
22+
"engines": {
23+
"node": ">=6.0.0"
24+
},
625
"scripts": {
726
"test": "npm run test:parallel && npm run test:sequential",
827
"test:bun": "npm run test:bun:parallel && npm run test:bun:sequential",
928
"test:deno": "npm run test:deno:parallel && npm run test:deno:sequential",
10-
"test:sequential": "tsx src/bin/index.ts --include=\"test/unit,test/integration,test/e2e\"",
11-
"test:parallel": "tsx src/bin/index.ts --parallel --include=\"test/unit,test/integration,test/e2e\"",
12-
"test:bun:sequential": "bun src/bin/index.ts --platform=\"bun\" --include=\"test/unit,test/integration,test/e2e\"",
13-
"test:bun:parallel": "bun src/bin/index.ts --platform=\"bun\" --parallel --include=\"test/unit,test/integration,test/e2e\"",
14-
"test:deno:sequential": "tsx src/bin/index.ts --platform=\"deno\" --deno-allow=\"all\" --deno-cjs --include=\"ci/test/unit,ci/test/integration,ci/test/e2e\"",
15-
"test:deno:parallel": "tsx src/bin/index.ts --platform=\"deno\" --deno-allow=\"all\" --deno-cjs --parallel --include=\"ci/test/unit,ci/test/integration,ci/test/e2e\"",
16-
"test:c8:sequential": "c8 tsx src/bin/index.ts --include=\"test/unit,test/integration,test/e2e\"",
17-
"test:c8:parallel": "c8 tsx src/bin/index.ts --parallel --include=\"test/unit,test/integration,test/e2e\"",
18-
"test:c8:sequential:options": "c8 tsx src/bin/index.ts --platform=\"node\" --fast-fail --debug --exclude=\".bak\" --kill-port=\"4000\" --kill-range=\"4000-4001\" --include=\"test/unit,test/integration,test/e2e\" --filter=\".test.|.spec.\"",
19-
"test:c8:parallel:options": "c8 tsx src/bin/index.ts --parallel --concurrency=\"4\" --platform=\"node\" --fast-fail --debug --exclude=\".bak\" --kill-port=\"4000\" --kill-range=\"4000-4001\" --include=\"test/unit,test/integration,test/e2e\" --filter=\".test.|.spec.\"",
20-
"test:ci": "tsx ./test/ci.test.ts",
29+
"test:sequential": "tsx src/bin/index.ts --include=test/unit,test/integration,test/e2e",
30+
"test:parallel": "tsx src/bin/index.ts --parallel --include=test/unit,test/integration,test/e2e",
31+
"test:bun:sequential": "bun src/bin/index.ts --platform=bun --include=test/unit,test/integration,test/e2e",
32+
"test:bun:parallel": "bun src/bin/index.ts --platform=bun --parallel --include=test/unit,test/integration,test/e2e",
33+
"test:deno:sequential": "tsx src/bin/index.ts --platform=deno --deno-allow=all --deno-cjs --include=ci/test/unit,ci/test/integration,ci/test/e2e",
34+
"test:deno:parallel": "tsx src/bin/index.ts --platform=deno --deno-allow=all --deno-cjs --parallel --include=ci/test/unit,ci/test/integration,ci/test/e2e",
35+
"test:c8:sequential": "c8 tsx src/bin/index.ts --include=test/unit,test/integration,test/e2e",
36+
"test:c8:parallel": "c8 tsx src/bin/index.ts --parallel --include=test/unit,test/integration,test/e2e",
37+
"test:c8:sequential:options": "c8 tsx src/bin/index.ts --platform=node --fast-fail --debug --exclude=\".bak\" --kill-port=4000 --kill-range=\"4000-4001\" --include=test/unit,test/integration,test/e2e --filter=\".test.|.spec.\"",
38+
"test:c8:parallel:options": "c8 tsx src/bin/index.ts --parallel --concurrency=4 --platform=node --fast-fail --debug --exclude=\".bak\" --kill-port=4000 --kill-range=\"4000-4001\" --include=test/unit,test/integration,test/e2e --filter=\".test.|.spec.\"",
39+
"test:ci": "tsx test/ci.test.ts",
2140
"test:ci:node": "FILTER='node-' npm run test:ci",
2241
"test:ci:bun": "FILTER='bun-' npm run test:ci",
2342
"test:ci:deno": "FILTER='deno-' npm run test:ci",
24-
"predocker:deno": "docker compose -f ./test/docker/playground/deno/docker-compose.yml down",
25-
"docker:deno": "docker compose -f ./test/docker/playground/deno/docker-compose.yml up --build",
26-
"clear": "shx rm -rf ./lib ./ci ./coverage",
43+
"predocker:deno": "docker compose -f test/docker/playground/deno/docker-compose.yml down",
44+
"docker:deno": "docker compose -f test/docker/playground/deno/docker-compose.yml up --build",
45+
"clear": "shx rm -rf lib ci coverage",
2746
"prebuild": "npm run clear",
28-
"build": "tsc && shx rm -rf ./lib/@types && tsc -p tsconfig.types.json && tsc -p tsconfig.test.json",
29-
"postbuild": "tsx ./tools/compatibility/node.ts && shx cp fixtures/server/package.json ci/fixtures/server/package.json && npm run build:deno && shx chmod +x lib/bin/index.js",
47+
"build": "tsc && shx rm -rf lib/@types && tsc -p tsconfig.types.json && tsc -p tsconfig.test.json",
48+
"postbuild": "tsx tools/compatibility/node.ts && shx cp fixtures/server/package.json ci/fixtures/server/package.json && npm run build:deno && shx chmod +x lib/bin/index.js",
3049
"build:deno": "esbuild src/polyfills/deno.mts --outfile=lib/polyfills/deno.mjs --format=esm",
3150
"eslint:checker": "eslint . --ext .js,.ts",
32-
"eslint:fix": "eslint . --fix --config ./.eslintrc.json",
51+
"eslint:fix": "eslint . --fix --config .eslintrc.json",
3352
"lint:checker": "npm run eslint:checker && npm run prettier:checker",
3453
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
3554
"prettier:checker": "prettier --check .",
@@ -38,14 +57,22 @@
3857
"postupdate": "npm run lint:fix",
3958
"benchmark": "cd benchmark && npm ci && npm start"
4059
},
41-
"license": "MIT",
42-
"repository": {
43-
"type": "git",
44-
"url": "git+https://github.com/wellwelwel/poku.git"
45-
},
46-
"homepage": "https://poku.io",
47-
"bin": {
48-
"poku": "./lib/bin/index.js"
60+
"devDependencies": {
61+
"@types/node": "^20.14.8",
62+
"@typescript-eslint/eslint-plugin": "^7.13.1",
63+
"@typescript-eslint/parser": "^7.13.1",
64+
"c8": "^10.1.2",
65+
"esbuild": "^0.21.5",
66+
"eslint": "^8.57.0",
67+
"eslint-config-prettier": "^9.1.0",
68+
"eslint-import-resolver-typescript": "^3.6.1",
69+
"eslint-plugin-import": "^2.29.1",
70+
"eslint-plugin-prettier": "^5.1.3",
71+
"packages-update": "^2.0.0",
72+
"prettier": "^3.3.2",
73+
"shx": "^0.3.4",
74+
"tsx": "4.15.7",
75+
"typescript": "^5.5.2"
4976
},
5077
"keywords": [
5178
"🐷",
@@ -54,90 +81,50 @@
5481
"assert",
5582
"assertion",
5683
"testing",
84+
"node",
5785
"bun",
5886
"deno",
59-
"cli",
87+
"typescript",
88+
"tsx",
6089
"concurrent",
6190
"concurrency",
62-
"parallelism",
6391
"parallel",
6492
"sequential",
93+
"run",
94+
"cli",
6595
"unit",
6696
"integration",
67-
"typescript",
97+
"e2e",
98+
"end-to-end",
99+
"tdd",
100+
"bdd",
68101
"isolate",
69102
"isolation",
70-
"run",
71-
"queue",
72-
"queuing",
73103
"watch",
74-
"nodejs",
75-
"node",
76-
"cli-app",
77-
"expect",
104+
"jest",
78105
"mocha",
79106
"chai",
80-
"jest",
107+
"vitest",
81108
"ava",
82109
"uvu",
83110
"tap",
84111
"tape",
85112
"karma",
86113
"urun",
87114
"supertest",
88-
"e2e",
89-
"end-to-end",
90-
"tdd",
91-
"bdd",
92-
"framework",
93-
"tool",
94-
"tools",
95115
"filter",
96116
"exclude",
97117
"list",
98118
"files",
99-
"list-files",
100-
"tsx",
101119
"kill",
120+
"container",
102121
"process",
103122
"port",
104123
"cross-platform",
105124
"commonjs",
106125
"cjs",
126+
"esmodules",
107127
"esm",
108-
"runtime",
109-
"poku",
110-
"pokujs"
111-
],
112-
"author": "https://github.com/wellwelwel",
113-
"bugs": {
114-
"url": "https://github.com/wellwelwel/poku/issues"
115-
},
116-
"engines": {
117-
"node": ">=6.0.0",
118-
"bun": ">=0.5.3",
119-
"deno": ">=1.17.0",
120-
"typescript": ">=5.0.2"
121-
},
122-
"files": [
123-
"lib"
124-
],
125-
"type": "commonjs",
126-
"devDependencies": {
127-
"@types/node": "^20.14.8",
128-
"@typescript-eslint/eslint-plugin": "^7.13.1",
129-
"@typescript-eslint/parser": "^7.13.1",
130-
"c8": "^10.1.2",
131-
"esbuild": "^0.21.5",
132-
"eslint": "^8.57.0",
133-
"eslint-config-prettier": "^9.1.0",
134-
"eslint-import-resolver-typescript": "^3.6.1",
135-
"eslint-plugin-import": "^2.29.1",
136-
"eslint-plugin-prettier": "^5.1.3",
137-
"packages-update": "^2.0.0",
138-
"prettier": "^3.3.2",
139-
"shx": "^0.3.4",
140-
"tsx": "4.15.7",
141-
"typescript": "^5.5.2"
142-
}
128+
"poku"
129+
]
143130
}

0 commit comments

Comments
 (0)