|
2 | 2 | "name": "poku",
|
3 | 3 | "version": "1.19.0",
|
4 | 4 | "description": "🐷 Poku makes testing easy for Node.js, Bun, Deno, and you at the same time.",
|
| 5 | + "license": "MIT", |
5 | 6 | "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 | + }, |
6 | 25 | "scripts": {
|
7 | 26 | "test": "npm run test:parallel && npm run test:sequential",
|
8 | 27 | "test:bun": "npm run test:bun:parallel && npm run test:bun:sequential",
|
9 | 28 | "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", |
21 | 40 | "test:ci:node": "FILTER='node-' npm run test:ci",
|
22 | 41 | "test:ci:bun": "FILTER='bun-' npm run test:ci",
|
23 | 42 | "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", |
27 | 46 | "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", |
30 | 49 | "build:deno": "esbuild src/polyfills/deno.mts --outfile=lib/polyfills/deno.mjs --format=esm",
|
31 | 50 | "eslint:checker": "eslint . --ext .js,.ts",
|
32 |
| - "eslint:fix": "eslint . --fix --config ./.eslintrc.json", |
| 51 | + "eslint:fix": "eslint . --fix --config .eslintrc.json", |
33 | 52 | "lint:checker": "npm run eslint:checker && npm run prettier:checker",
|
34 | 53 | "lint:fix": "npm run eslint:fix && npm run prettier:fix",
|
35 | 54 | "prettier:checker": "prettier --check .",
|
|
38 | 57 | "postupdate": "npm run lint:fix",
|
39 | 58 | "benchmark": "cd benchmark && npm ci && npm start"
|
40 | 59 | },
|
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" |
49 | 76 | },
|
50 | 77 | "keywords": [
|
51 | 78 | "🐷",
|
|
54 | 81 | "assert",
|
55 | 82 | "assertion",
|
56 | 83 | "testing",
|
| 84 | + "node", |
57 | 85 | "bun",
|
58 | 86 | "deno",
|
59 |
| - "cli", |
| 87 | + "typescript", |
| 88 | + "tsx", |
60 | 89 | "concurrent",
|
61 | 90 | "concurrency",
|
62 |
| - "parallelism", |
63 | 91 | "parallel",
|
64 | 92 | "sequential",
|
| 93 | + "run", |
| 94 | + "cli", |
65 | 95 | "unit",
|
66 | 96 | "integration",
|
67 |
| - "typescript", |
| 97 | + "e2e", |
| 98 | + "end-to-end", |
| 99 | + "tdd", |
| 100 | + "bdd", |
68 | 101 | "isolate",
|
69 | 102 | "isolation",
|
70 |
| - "run", |
71 |
| - "queue", |
72 |
| - "queuing", |
73 | 103 | "watch",
|
74 |
| - "nodejs", |
75 |
| - "node", |
76 |
| - "cli-app", |
77 |
| - "expect", |
| 104 | + "jest", |
78 | 105 | "mocha",
|
79 | 106 | "chai",
|
80 |
| - "jest", |
| 107 | + "vitest", |
81 | 108 | "ava",
|
82 | 109 | "uvu",
|
83 | 110 | "tap",
|
84 | 111 | "tape",
|
85 | 112 | "karma",
|
86 | 113 | "urun",
|
87 | 114 | "supertest",
|
88 |
| - "e2e", |
89 |
| - "end-to-end", |
90 |
| - "tdd", |
91 |
| - "bdd", |
92 |
| - "framework", |
93 |
| - "tool", |
94 |
| - "tools", |
95 | 115 | "filter",
|
96 | 116 | "exclude",
|
97 | 117 | "list",
|
98 | 118 | "files",
|
99 |
| - "list-files", |
100 |
| - "tsx", |
101 | 119 | "kill",
|
| 120 | + "container", |
102 | 121 | "process",
|
103 | 122 | "port",
|
104 | 123 | "cross-platform",
|
105 | 124 | "commonjs",
|
106 | 125 | "cjs",
|
| 126 | + "esmodules", |
107 | 127 | "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 | + ] |
143 | 130 | }
|
0 commit comments