|
{ |
|
"name": "polyscript", |
|
"version": "0.12.8", |
|
"description": "PyScript single core to rule them all", |
|
"main": "./cjs/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 cjs && 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/", |
|
"cjs": "ascjs --no-default esm cjs", |
|
"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": "c8 --100 node --experimental-loader @node-loader/import-maps test/index.js && npm run test:integration", |
|
"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" |
|
}, |
|
"keywords": [ |
|
"polyscript", |
|
"pyscript", |
|
"core", |
|
"python" |
|
], |
|
"author": "Anaconda Inc.", |
|
"license": "APACHE-2.0", |
|
"devDependencies": { |
|
"@node-loader/import-maps": "^1.1.0", |
|
"@playwright/test": "^1.43.1", |
|
"@rollup/plugin-node-resolve": "^15.2.3", |
|
"@rollup/plugin-terser": "^0.4.4", |
|
"@zip.js/zip.js": "^2.7.43", |
|
"ascjs": "^6.0.3", |
|
"c8": "^9.1.0", |
|
"chokidar": "^3.6.0", |
|
"eslint": "^9.1.1", |
|
"linkedom": "^0.16.11", |
|
"rollup": "^4.17.2", |
|
"static-handler": "^0.4.3", |
|
"typescript": "^5.4.5" |
|
}, |
|
"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", |
|
"default": "./cjs/index.js" |
|
}, |
|
"./exports": { |
|
"types": "./types/exports.d.ts", |
|
"import": "./esm/exports.js", |
|
"default": "./cjs/exports.js" |
|
}, |
|
"./xworker": { |
|
"types": "./types/xworker.d.ts", |
|
"import": "./esm/xworker.js", |
|
"default": "./cjs/xworker.js" |
|
}, |
|
"./package.json": "./package.json" |
|
}, |
|
"dependencies": { |
|
"@ungap/structured-clone": "^1.2.0", |
|
"@ungap/with-resolvers": "^0.1.0", |
|
"@webreflection/fetch": "^0.1.5", |
|
"basic-devtools": "^0.1.6", |
|
"codedent": "^0.1.2", |
|
"coincident": "^1.2.3", |
|
"gc-hook": "^0.3.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-5bhX6Jgu0tLwy+mZ9tCrID+xVZf10xf2GjFmcvIdqDg=" |
|
} |
|
} |
|
|