-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
99 lines (99 loc) · 4.57 KB
/
package.json
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
{
"name": "polyscript",
"version": "0.16.10",
"description": "PyScript single core to rule them all",
"main": "./esm/index.js",
"types": "./types/polyscript/esm/index.d.ts",
"scripts": {
"server": "npx static-handler --coi .",
"build": "export ESLINT_USE_FLAT_CONFIG=false; npm run build:3rd-party && rm -rf dist && mkdir -p esm/python && node rollup/build_python.cjs && npm run rollup:xworker && npm run rollup:core && eslint esm/ && npm run ts && npm run rollup:integrations && npm run build:docs",
"build:3rd-party": "node rollup/3rd-party.cjs",
"build:docs": "mv docs/coi.js ./; rm docs/*.{js,map}; cp dist/* docs/; rm -f docs/_template.js; mv coi.js docs/",
"dev": "node dev.cjs",
"rollup:core": "rollup --config rollup/core.config.js",
"rollup:integrations": "node rollup/build_integrations.cjs",
"rollup:xworker": "rollup --config rollup/xworker.config.js",
"test": "npm run test:integration",
"test:coverage//": "due latest Pyodide changes test coverage with mocks is completely broken!",
"test:coverage": "c8 --100 node --trace-warnings --experimental-loader @node-loader/import-maps test/index.js",
"test:html": "npm run test && c8 report -r html",
"test:integration//": "Don't bother with spinning servers. Trap the tests EXIT_CODE. Kill the running server, if any. Return the EXIT_CODE to eventually throw an error.",
"test:integration": "static-handler --coi . 2>/dev/null & SH_PID=$!; EXIT_CODE=0; playwright test --fully-parallel test/ || EXIT_CODE=$?; kill $SH_PID 2>/dev/null; exit $EXIT_CODE",
"coverage": "mkdir -p ./coverage; c8 report --reporter=text-lcov > ./coverage/lcov.info",
"size": "npm run size:module && npm run size:worker",
"size:module": "echo module is $(cat dist/index.js | brotli | wc -c) bytes once compressed",
"size:worker": "echo worker is $(cat esm/worker/xworker.js | brotli | wc -c) bytes once compressed",
"ts": "rm -rf types && tsc -p .",
"update:interpreters": "npm run version:pyodide && npm run version:wasmoon && npm run version:webr && npm run version:micropython && npm run version:ruby-wasm-wasi && node rollup/update_versions.cjs && npm run build && npm run test",
"version:micropython": "npm view @micropython/micropython-webassembly-pyscript version>versions/micropython",
"version:pyodide": "npm view pyodide version>versions/pyodide",
"version:ruby-wasm-wasi": "git ls-remote --tags --refs --sort='v:refname' https://github.com/ruby/ruby.wasm.git | grep 'tags/[[:digit:]]\\.' | tail -n1 | sed 's/.*\\///'>versions/ruby-wasm-wasi",
"version:wasmoon": "npm view wasmoon version>versions/wasmoon",
"version:webr": "npm view webr version>versions/webr"
},
"files": [
"esm/",
"dist/",
"REDME.md",
"LICENSE"
],
"keywords": [
"polyscript",
"pyscript",
"core",
"python"
],
"author": "Anaconda Inc.",
"license": "APACHE-2.0",
"devDependencies": {
"@node-loader/import-maps": "^1.1.0",
"@playwright/test": "^1.49.0",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@zip.js/zip.js": "^2.7.53",
"c8": "^10.1.2",
"chokidar": "^4.0.1",
"eslint": "^9.15.0",
"linkedom": "^0.18.5",
"rollup": "^4.27.4",
"static-handler": "^0.5.3",
"typescript": "^5.7.2"
},
"type": "module",
"module": "./dist/index.js",
"unpkg": "./dist/index.js",
"jsdelivr": "./jsdelivr.js",
"browser": "./dist/index.js",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./esm/index.js"
},
"./exports": {
"types": "./types/exports.d.ts",
"import": "./esm/exports.js"
},
"./xworker": {
"types": "./types/xworker.d.ts",
"import": "./esm/xworker.js"
},
"./package.json": "./package.json"
},
"dependencies": {
"@ungap/structured-clone": "^1.2.0",
"@ungap/with-resolvers": "^0.1.0",
"@webreflection/fetch": "^0.1.5",
"@webreflection/idb-map": "^0.3.2",
"basic-devtools": "^0.1.6",
"codedent": "^0.1.2",
"coincident": "^2.2.3",
"gc-hook": "^0.4.1",
"html-escaper": "^3.0.3",
"proxy-target": "^3.0.2",
"sticky-module": "^0.1.1",
"to-json-callback": "^0.1.1"
},
"worker": {
"blob": "sha256-x6D1Uf/1O2v8l01PSk88G9LjWLDW27N4VcvB2aZggE8="
}
}