/
package.json
177 lines (177 loc) · 6.51 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
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
{
"name": "@hpcc-js/wasm",
"version": "2.16.2",
"description": "hpcc-js - WASM Libraries",
"keywords": [
"graphviz",
"typescript",
"webassembly",
"wasm",
"dot",
"zstd",
"graphviz-dot",
"zstandard",
"expat",
"base91",
"expat-xml-parser",
"webassemby"
],
"type": "module",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.umd.js"
},
"./base91": {
"types": "./types/base91.d.ts",
"import": "./dist/base91.js",
"require": "./dist/base91.cjs",
"default": "./dist/base91.umd.js"
},
"./expat": {
"types": "./types/expat.d.ts",
"import": "./dist/expat.js",
"require": "./dist/expat.cjs",
"default": "./dist/expat.umd.js"
},
"./graphviz": {
"types": "./types/graphviz.d.ts",
"import": "./dist/graphviz.js",
"require": "./dist/graphviz.cjs",
"default": "./dist/graphviz.umd.js"
},
"./zstd": {
"types": "./types/zstd.d.ts",
"import": "./dist/zstd.js",
"require": "./dist/zstd.cjs",
"default": "./dist/zstd.umd.js"
}
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"browser": "./dist/index.umd.js",
"unpkg": "./dist/index.umd.js",
"jsdelivr": "./dist/index.umd.js",
"types": "./types/index.d.ts",
"bin": {
"dot-wasm": "./bin/dot-wasm.js"
},
"files": [
"bin/*.*",
"dist/*.*",
"types/*",
"src-ts/*.css"
],
"scripts": {
"install-emsdk": "run-script-os",
"install-emsdk:linux": "./scripts/cpp-install-emsdk.sh",
"install-emsdk:win32": "wsl -e ./scripts/cpp-install-emsdk.sh",
"install-vcpkg": "run-script-os",
"install-vcpkg:linux": "./scripts/cpp-install-vcpkg.sh",
"install-vcpkg:win32": "wsl -e ./scripts/cpp-install-vcpkg.sh",
"install-build-deps": "run-s install-emsdk install-vcpkg",
"uninstall-build-deps": "rimraf ./emsdk ./vcpkg ./src-expat ./src-vcpkg ./wasi-sdk ./wit-bindgen",
"clean-build": "rimraf .nyc_output bin build coverage dist* lib* output-* tmp types *.tsbuildinfo vcpkg/vcpkg",
"clean-docs": "rimraf docs/.vitepress/dist docs/classes docs/interfaces docs/modules docs/.nojekyll docs/README.md",
"clean": "run-p clean-build clean-docs",
"copy-res": "cp ./docs/*.png ./docs/.vitepress/dist",
"compile": "tsc",
"compile-watch": "npm run compile -- -w",
"compile-asm": "asc ./src-asm/index.ts --target release",
"compile-cpp": "run-script-os",
"compile-cpp:linux": "./scripts/cpp-build.sh",
"compile-cpp:win32": "wsl -e ./scripts/cpp-build.sh",
"bundle": "rollup -c",
"bundle-debug": "rollup -c --configDebug",
"bundle-watch": "npm run bundle-debug -- -w",
"bundle-sfx": "rollup -c ./rollup-sfx.config.js",
"gen-docs": "typedoc",
"gen-docs-watch": "typedoc --watch",
"build-docs-vitepress": "vitepress build docs",
"build-docs": "run-s gen-docs build-docs-vitepress copy-res",
"build-docs-watch": "vitepress dev docs",
"build-docker-image": "docker build --rm --progress plain -f \"./docker/ubuntu-dev.dockerfile\" -t hpcc-js-wasm-build:latest \".\"",
"build-docker-wasm": "npx -y mkdirp dist && docker run --rm -it --mount source=\"$(pwd)/dist\",target=/usr/src/app/dist,type=bind,consistency=cached hpcc-js-wasm-build:latest",
"build-docker": "run-s build-docker-image build-docker-wasm",
"build": "mkdirp ./lib-esm && run-s compile-cpp compile bundle",
"standard-version": "standard-version",
"standard-version-next": "standard-version -p next",
"standard-version-dryrun": "standard-version --dry-run",
"git-push": "git push --follow-tags upstream trunk",
"watch": "run-p compile-watch bundle-watch",
"serve-docs": "vitepress serve docs",
"serve": "ws",
"lint": "eslint src-ts/**/*.ts",
"lint-fix": "npm run lint -- --fix",
"test-cli": "node ./bin/dot-wasm.js -v",
"test-cli-help": "node ./bin/dot-wasm.js",
"test-bundle": "npx -y esbuild --format=esm --bundle ./dist/base91.js --outdir=tmp",
"test-bundle-umd": "npx -y esbuild --platform=node --bundle ./dist/base91.umd.js --outdir=tmp",
"test-bundle-node": "npx -y esbuild --platform=node --bundle ./dist/base91.js --outdir=tmp",
"test-chrome": "karma start --single-run --browsers ChromiumHeadless karma.conf.cjs",
"test-firefox": "karma start --single-run --browsers Firefox karma.conf.cjs",
"test-node": "node ./bin/dot-wasm.js -v && mocha ./dist-test/index.node.cjs --reporter spec && mocha ./dist-test/index.node.js --reporter spec",
"test": "run-s test-bundle test-bundle-node test-bundle-umd test-chrome test-node",
"coverage": "nyc npm run test-node",
"coverage-report": "nyc report --reporter=lcov",
"tag": "run-s standard-version git-push",
"tag-next": "run-s standard-version-next git-push",
"purge-jsdelivr": "node ./utils/purge-jsdelivr.js",
"update": "npx npm-check-updates -u -t minor",
"update-major": "npx npm-check-updates -u"
},
"dependencies": {
"yargs": "17.7.2"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@rollup/plugin-commonjs": "25.0.7",
"@rollup/plugin-node-resolve": "15.2.3",
"@rollup/plugin-terser": "0.4.4",
"@types/chai": "4.3.14",
"@types/emscripten": "1.39.10",
"@types/mocha": "10.0.6",
"@types/node": "20.12.7",
"@types/yargs": "17.0.32",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"assemblyscript": "0.27.27",
"chai": "5.1.0",
"coveralls": "3.1.1",
"eslint": "8.57.0",
"fzstd": "0.1.1",
"karma": "6.4.3",
"karma-chai": "0.1.0",
"karma-chrome-launcher": "3.2.0",
"karma-firefox-launcher": "2.1.3",
"karma-mocha": "2.0.1",
"karma-spec-reporter": "0.0.36",
"local-web-server": "5.3.3",
"mocha": "10.4.0",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"rimraf": "5.0.5",
"rollup": "4.17.1",
"rollup-plugin-sourcemaps": "0.6.3",
"run-script-os": "1.1.6",
"standard-version": "9.5.0",
"tslib": "2.6.2",
"typedoc": "0.25.13",
"typedoc-plugin-markdown": "3.17.1",
"typescript": "5.4.5",
"vitepress": "1.1.4"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hpcc-systems/hpcc-js-wasm.git"
},
"author": "Gordon Smith <gordonjsmith@gmail.com>",
"contributors": [],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/hpcc-systems/hpcc-js-wasm/issues"
},
"homepage": "https://hpcc-systems.github.io/hpcc-js-wasm/"
}