forked from vercel-labs/just-bash
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
129 lines (129 loc) · 6.89 KB
/
package.json
File metadata and controls
129 lines (129 loc) · 6.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "just-bash",
"version": "2.14.0",
"description": "A simulated bash environment with virtual filesystem",
"repository": {
"type": "git",
"url": "git+https://github.com/vercel-labs/just-bash.git"
},
"homepage": "https://github.com/vercel-labs/just-bash#readme",
"bugs": {
"url": "https://github.com/vercel-labs/just-bash/issues"
},
"type": "module",
"main": "dist/bundle/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"browser": "./dist/bundle/browser.js",
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/bundle/index.cjs"
},
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/bundle/index.js"
}
},
"./browser": {
"types": "./dist/browser.d.ts",
"import": "./dist/bundle/browser.js"
}
},
"files": [
"dist/bundle/",
"dist/bin/",
"dist/*.d.ts",
"dist/*.d.cts",
"dist/ast/*.d.ts",
"dist/commands/**/*.d.ts",
"dist/fs/**/*.d.ts",
"dist/interpreter/**/*.d.ts",
"dist/network/**/*.d.ts",
"dist/parser/*.d.ts",
"dist/sandbox/*.d.ts",
"dist/utils/*.d.ts",
"vendor/cpython-emscripten/",
"README.md",
"dist/AGENTS.md"
],
"bin": {
"just-bash": "./dist/bin/just-bash.js",
"just-bash-shell": "./dist/bin/shell/shell.js"
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "rm -rf dist && tsc && pnpm build:lib && pnpm build:lib:cjs && pnpm build:browser && pnpm build:cli && pnpm build:shell && pnpm build:worker && pnpm build:clean && cp dist/index.d.ts dist/index.d.cts && sed '1,/^-->/d' AGENTS.npm.md > dist/AGENTS.md",
"build:clean": "find dist -name '*.test.js' -delete && find dist -name '*.test.d.ts' -delete",
"build:worker": "esbuild src/commands/python3/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/python3/worker.js --external:../../../vendor/cpython-emscripten/* && cp src/commands/python3/worker.js dist/commands/python3/worker.js && mkdir -p dist/bin/chunks && cp src/commands/python3/worker.js dist/bin/chunks/worker.js && mkdir -p dist/bundle/chunks && cp src/commands/python3/worker.js dist/bundle/chunks/worker.js && esbuild src/commands/js-exec/worker.ts --bundle --platform=node --format=esm --outfile=src/commands/js-exec/worker.js --external:quickjs-emscripten && cp src/commands/js-exec/worker.js dist/commands/js-exec/worker.js && cp src/commands/js-exec/worker.js dist/bin/chunks/js-exec-worker.js && cp src/commands/js-exec/worker.js dist/bundle/chunks/js-exec-worker.js",
"build:lib": "esbuild dist/index.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bundle --chunk-names=chunks/[name]-[hash] --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip",
"build:lib:cjs": "esbuild dist/index.js --bundle --platform=node --format=cjs --minify --outfile=dist/bundle/index.cjs --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip",
"build:browser": "esbuild dist/browser.js --bundle --platform=browser --format=esm --minify --outfile=dist/bundle/browser.js --external:diff --external:minimatch --external:sprintf-js --external:turndown --external:node:zlib --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip --define:__BROWSER__=true --alias:node:dns=./src/shims/browser-unsupported.js",
"build:cli": "esbuild dist/cli/just-bash.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip",
"build:shell": "esbuild dist/cli/shell.js --bundle --splitting --platform=node --format=esm --minify --outdir=dist/bin/shell --entry-names=[name] --chunk-names=chunks/[name]-[hash] --banner:js='#!/usr/bin/env node' --external:sql.js --external:quickjs-emscripten --external:@mongodb-js/zstd --external:node-liblzma --external:seek-bzip",
"prepublishOnly": "pnpm validate",
"validate": "pnpm lint && pnpm knip && pnpm typecheck && pnpm build && pnpm check:worker-sync && pnpm test:run && pnpm test:wasm && pnpm test:dist && pnpm test:examples",
"test:examples": "cd examples/cjs-consumer && pnpm install --no-frozen-lockfile && npx tsc --noEmit",
"typecheck": "tsc --noEmit",
"lint": "biome check . && pnpm lint:banned",
"check:worker-sync": "node scripts/check-worker-sync.js",
"lint:banned": "node scripts/check-banned-patterns.js",
"lint:fix": "biome check --write .",
"knip": "knip",
"test": "vitest",
"test:run": "vitest run --exclude src/security/fuzzing/ --exclude src/commands/python3/ --exclude src/commands/sqlite3/ --exclude src/commands/js-exec/ --exclude src/agent-examples/python-scripting.test.ts",
"test:dist": "vitest run src/cli/just-bash.bundle.test.ts",
"test:unit": "vitest run --config vitest.unit.config.ts",
"test:wasm": "vitest run --config vitest.wasm.config.ts",
"test:comparison": "vitest run --config vitest.comparison.config.ts",
"test:comparison:record": "RECORD_FIXTURES=1 vitest run --config vitest.comparison.config.ts",
"test:coverage": "vitest run --coverage",
"test:coverage:unit": "vitest run --config vitest.unit.config.ts --coverage",
"test:fuzz": "vitest run src/security/fuzzing/",
"test:fuzz:long": "FUZZ_RUNS=10000 vitest run src/security/fuzzing/",
"shell": "npx tsx src/cli/shell.ts",
"dev:exec": "npx tsx src/cli/exec.ts"
},
"keywords": [],
"author": "Malte and Claude",
"license": "Apache-2.0",
"devDependencies": {
"@biomejs/biome": "^2.3.10",
"@types/ini": "^4.1.1",
"@types/node": "^25.0.3",
"@types/papaparse": "^5.5.2",
"@types/sprintf-js": "^1.1.4",
"@types/sql.js": "^1.4.9",
"@types/turndown": "^5.0.6",
"@vitest/coverage-v8": "^4.0.18",
"esbuild": "^0.27.2",
"fast-check": "^3.23.2",
"knip": "^5.41.1",
"typescript": "^5.9.3",
"vitest": "^4.0.16"
},
"dependencies": {
"seek-bzip": "^2.0.0",
"diff": "^8.0.2",
"fast-xml-parser": "^5.3.3",
"file-type": "^21.2.0",
"ini": "^6.0.0",
"minimatch": "^10.1.1",
"modern-tar": "^0.7.3",
"papaparse": "^5.5.3",
"quickjs-emscripten": "^0.32.0",
"re2js": "^1.2.1",
"smol-toml": "^1.6.0",
"sprintf-js": "^1.1.3",
"sql.js": "^1.13.0",
"turndown": "^7.2.2",
"yaml": "^2.8.2"
},
"optionalDependencies": {
"@mongodb-js/zstd": "^7.0.0",
"node-liblzma": "^2.0.3"
},
"packageManager": "pnpm@8.15.9+sha512.499434c9d8fdd1a2794ebf4552b3b25c0a633abcee5bb15e7b5de90f32f47b513aca98cd5cfd001c31f0db454bc3804edccd578501e4ca293a6816166bbd9f81"
}