-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
66 lines (66 loc) · 1.99 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": "svg-sprites",
"version": "0.4.14",
"description": "",
"main": "lib/sprite-sheet.js",
"module": "lib/sprite-sheet.js",
"type": "module",
"exports": {
"./sheet": {
"import": "./lib/sprite-sheet.js",
"require": "./lib/sprite-sheet.cjs",
"types": "./lib/sprite-sheet.d.ts"
},
"./svg-icon": {
"import": "./lib/Icon.js",
"require": "./lib/Icon.cjs",
"types": "./lib/Icon.d.ts"
},
"./loader": {
"import": "./lib/webpack-loader.js",
"require": "./lib/webpack-loader.cjs",
"types": "./lib/webpack-loader.d.ts"
},
"./vite": {
"import": "./lib/vite-plugin.js",
"require": "./lib/vite-plugin.cjs",
"types": "./lib/vite-plugin.d.ts"
}
},
"keywords": [
"svg",
"sprite",
"icons"
],
"author": "Tim Havlicek",
"license": "ISC",
"scripts": {
"prepublish": "npm run build",
"test": "vite build test/vite && webpack -c test/wp/webpack.config.js",
"test:vite": "vite test/vite",
"test:webpack": "webpack watch -c test/wp/webpack.config.js",
"build": "npm run build:main && npm run build:component && npm run build:vite && npm run build:webpack",
"build:main": "tsup src/sprite-sheet.ts -d lib --format esm,cjs --dts",
"build:component": "tsup src/component/Icon.ts -d lib --format esm,cjs --dts --external svg-sprites/sheet",
"build:vite": "tsup src/plugin/vite-plugin.ts -d lib --format esm,cjs --dts --external chokidar",
"build:webpack": "tsup src/loader/webpack-loader.ts -d lib --format esm,cjs --dts",
"lint": "eslint --ext .ts src"
},
"dependencies": {
"fast-glob": "^3.3.2",
"svg-sprite": "^2.0.4"
},
"devDependencies": {
"@atrium-ui/codestyle": "^1.1.1",
"@biomejs/biome": "^1.8.3",
"@types/node": "^18.19.49",
"@types/svg-sprite": "^0.0.34",
"happy-dom": "^15.7.4",
"tsup": "^6.7.0",
"typescript": "^4.9.5",
"vite": "^4.5.3",
"vitest": "^2.1.1",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
}
}