-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
45 lines (45 loc) · 1.86 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
{
"name": "svg-crowbar",
"version": "0.7.0",
"description": "A library based on a Chrome-specific bookmarklet that extracts SVG nodes and accompanying styles from an HTML document and downloads them as an SVG file",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"files": ["dist"],
"scripts": {
"test": "BABEL_ENV=commonjs jest --forceExit ./test",
"test-ci": "BABEL_ENV=commonjs jest --runInBand --forceExit ./test",
"lint": "npx biome format . && npx biome check .",
"lint-fix": "npx biome format --write . && npx biome check --write .",
"clean": "rm -fr dist manual-tests/main.js",
"build": "npm run clean && npm run build-umd && npm run build-cjs && npm run build-esm",
"build-umd": "webpack --entry ./src/index.js --mode=production",
"build-umd-dev": "webpack --entry ./src/index.js --mode=development",
"build-cjs": "BABEL_ENV=commonjs babel src/* --out-dir dist/cjs --copy-files",
"build-esm": "BABEL_ENV=esmodules babel src/* --out-dir dist/esm --copy-files",
"prepublishOnly": "npm run test-ci && npm run build",
"prepare-mtests": "npm run build-umd && cp ./dist/main.js ./manual-tests"
},
"repository": "git+https://github.com/cy6erskunk/svg-crowbar.git",
"keywords": ["svg-crowbar", "png-crowbar"],
"author": "Igor Shevchenko <cyberskunk@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/cy6erskunk/svg-crowbar/issues"
},
"homepage": "https://svg-crowbar.js.org/",
"devDependencies": {
"@babel/cli": "7.25.6",
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.4",
"@biomejs/biome": "1.8.3",
"@playwright/test": "1.47.0",
"@types/node": "20.16.5",
"babel-jest": "29.7.0",
"jest": "29.7.0",
"jest-canvas-mock": "2.5.2",
"jest-environment-jsdom": "29.7.0",
"serve": "14.2.3",
"webpack": "5.94.0",
"webpack-cli": "5.1.4"
}
}