-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
49 lines (49 loc) · 1.48 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
{
"name": "roughlify",
"description": "Make your SVG rough",
"version": "0.3.0",
"author": {
"name": "Alban Siffer"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/asiffer/roughlify.git"
},
"module": "dist/roughlify.js",
"main": "dist/roughlify.js",
"types": "dist/roughlify.d.ts",
"files": [
"dist/roughlify.js",
"dist/roughlify.cli.js",
"dist/roughlify.d.ts"
],
"type": "module",
"bin": {
"roughlify": "dist/roughlify.cli.js"
},
"scripts": {
"build:types": "bun run tsc",
"build:cli": "bun build src/cli.ts --target=node --minimize --outfile dist/roughlify.cli.js",
"build:lib": "bun build src/roughlify.ts --target=browser --minimize --outdir dist/",
"build": "bun run build:lib && bun run build:types && bun run build:cli",
"postbuild:cli": "bun run chmod:cli",
"prechmod:cli": "sed -i 's,var syncWorkerFile.*$,var syncWorkerFile = __require.resolve ? __require.resolve(\"jsdom/lib/jsdom/living/xhr/xhr-sync-worker.js\") : null;,g' dist/roughlify.cli.js",
"chmod:cli": "sed -i '1 i #!/usr/bin/env node' dist/roughlify.cli.js && chmod +x dist/roughlify.cli.js",
"clean": "rm -rf dist/"
},
"devDependencies": {
"@types/jsdom": "^21.1.6",
"bun-types": "latest"
},
"peerDependencies": {
"typescript": "^5.0.0"
},
"dependencies": {
"chalk": "^5.3.0",
"commander": "^12.0.0",
"jsdom": "^24.0.0",
"prettier": "^3.2.5",
"roughjs": "^4.6.6"
}
}