File size: 3,318 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
    "name": "@pyscript/core",
    "version": "0.4.32",
    "type": "module",
    "description": "PyScript",
    "module": "./index.js",
    "unpkg": "./index.js",
    "jsdelivr": "./jsdelivr.js",
    "browser": "./index.js",
    "main": "./index.js",
    "exports": {
        ".": {
            "types": "./types/core.d.ts",
            "import": "./src/core.js"
        },
        "./css": {
            "import": "./dist/core.css"
        },
        "./package.json": "./package.json"
    },
    "scripts": {
        "server": "npx static-handler --coi .",
        "build": "export ESLINT_USE_FLAT_CONFIG=false; npm run build:3rd-party && npm run build:stdlib && npm run build:plugins && npm run build:core && eslint src/ && npm run ts && npm run test:mpy",
        "build:core": "rm -rf dist && rollup --config rollup/core.config.js && cp src/3rd-party/*.css dist/",
        "build:plugins": "node rollup/plugins.cjs",
        "build:stdlib": "node rollup/stdlib.cjs",
        "build:3rd-party": "node rollup/3rd-party.cjs",
        "clean:3rd-party": "rm src/3rd-party/*.js && rm src/3rd-party/*.css",
        "test:mpy": "static-handler --coi . 2>/dev/null & SH_PID=$!; EXIT_CODE=0; playwright test --fully-parallel test/mpy.spec.js || EXIT_CODE=$?; kill $SH_PID 2>/dev/null; exit $EXIT_CODE",
        "test:ws": "bun test/ws/index.js & playwright test test/ws.spec.js",
        "dev": "node dev.cjs",
        "release": "npm run build && npm run zip",
        "size": "echo -e \"\\033[1mdist/*.js file size\\033[0m\"; for js in $(ls dist/*.js); do cat $js | brotli > ._; echo -e \"\\033[2m$js:\\033[0m $(du -h --apparent-size ._ | sed -e 's/[[:space:]]*._//')\"; rm ._; done",
        "ts": "rm -rf types && tsc -p .",
        "zip": "zip -r dist.zip ./dist"
    },
    "keywords": [
        "pyscript",
        "core"
    ],
    "author": "Anaconda Inc.",
    "license": "APACHE-2.0",
    "dependencies": {
        "@ungap/with-resolvers": "^0.1.0",
        "basic-devtools": "^0.1.6",
        "polyscript": "^0.12.8",
        "sticky-module": "^0.1.1",
        "to-json-callback": "^0.1.1",
        "type-checked-collections": "^0.1.7"
    },
    "devDependencies": {
        "@codemirror/commands": "^6.5.0",
        "@codemirror/lang-python": "^6.1.6",
        "@codemirror/language": "^6.10.1",
        "@codemirror/state": "^6.4.1",
        "@codemirror/view": "^6.26.3",
        "@playwright/test": "^1.44.0",
        "@rollup/plugin-commonjs": "^25.0.7",
        "@rollup/plugin-node-resolve": "^15.2.3",
        "@rollup/plugin-terser": "^0.4.4",
        "@webreflection/toml-j0.4": "^1.1.3",
        "@xterm/addon-fit": "^0.10.0",
        "@xterm/addon-web-links": "^0.11.0",
        "bun": "^1.1.7",
        "chokidar": "^3.6.0",
        "codemirror": "^6.0.1",
        "eslint": "^9.2.0",
        "rollup": "^4.17.2",
        "rollup-plugin-postcss": "^4.0.2",
        "rollup-plugin-string": "^3.0.0",
        "static-handler": "^0.4.3",
        "typescript": "^5.4.5",
        "xterm": "^5.3.0",
        "xterm-readline": "^1.1.1"
    },
    "repository": {
        "type": "git",
        "url": "git+https://github.com/pyscript/pyscript.git"
    },
    "bugs": {
        "url": "https://github.com/pyscript/pyscript/issues"
    },
    "homepage": "https://github.com/pyscript/pyscript#readme"
}