-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpackage.json
66 lines (66 loc) · 2.08 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
{
"name": "esm-potrace-wasm",
"version": "0.4.1",
"description": "A modern ESM build of the Potrace library for use in the browser.",
"main": "./dist/index.js",
"browser": "./dist/index.js",
"exports": {
".": "./dist/index.js",
"./package.json": "./package.json"
},
"module": "./dist/index.js",
"type": "module",
"types": "./src/index.d.ts",
"files": [
"dist/"
],
"scripts": {
"start": "npx http-server",
"clean": "run-script-os",
"clean:win32": "if exist dist rd /s /q dist",
"clean:default": "shx rm -rf ./dist",
"build": "run-script-os",
"build:win32": "npm run clean && mkdir dist && @powershell -NoProfile -ExecutionPolicy Unrestricted -Command ./build.ps1 && npm run terser",
"build:default": "npm run clean && shx mkdir ./dist && bash ./build.sh && npm run terser",
"terser": "shx echo \"export { potrace, ready as init };\" >> ./dist/temp.js && npx terser --compress --mangle --comments /@license/ --ecma 8 --module --output ./dist/index.js -- ./dist/temp.js && shx rm ./dist/temp.js && shx cp ./src/index.d.ts ./dist/index.d.ts",
"lint": "npx eslint . --ext .js,.mjs --fix --ignore-pattern dist/",
"fix": "npx prettier --write .",
"prepare": "npm run lint && npm run fix && npm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/tomayac/esm-potrace-wasm.git"
},
"author": "Thomas Steiner ([email protected])",
"license": "GPL-2.0",
"bugs": {
"url": "https://github.com/tomayac/esm-potrace-wasm/issues"
},
"homepage": "https://github.com/tomayac/esm-potrace-wasm#readme",
"devDependencies": {
"eslint": "^8.22.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^8.5.0",
"http-server": "^14.1.1",
"prettier": "^2.7.1",
"run-script-os": "^1.1.6",
"shx": "^0.3.4",
"terser": "^5.15.0"
},
"eslintConfig": {
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module"
},
"extends": [
"google",
"prettier"
],
"rules": {
"valid-jsdoc": "off"
}
},
"keywords": [
"potrace"
]
}