-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
60 lines (60 loc) · 2.05 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
{
"name": "vite-plugin-typo3",
"version": "1-dev",
"description": "Vite plugin to collect assets from TYPO3 extensions",
"author": "Simon Praetorius",
"license": "MIT",
"keywords": [
"vite-plugin"
],
"homepage": "https://github.com/s2b/vite-plugin-typo3",
"type": "module",
"main": "./dist/cjs/index.js",
"types": "./dist/cjs/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"files": [
"dist/**/*"
],
"scripts": {
"clean": "rm -rf ./dist",
"build": "npm run clean && tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
"prepack": "npm run build",
"lint": "prettier --check .",
"format": "prettier --write .",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"test:distribution": "npm run test:distribution:pack && npm run test:distribution:cjs && npm run test:distribution:esm && npm run test:distribution:ts",
"test:distribution:pack": "npm pack --pack-destination tests/distribution/ && cd tests/distribution/ && tar xzf vite-plugin-typo3*.tgz",
"test:distribution:cjs": "cd tests/distribution/javascript-cjs/ && npm install --package-lock=false && npm run build",
"test:distribution:esm": "cd tests/distribution/javascript-esm/ && npm install --package-lock=false && npm run build",
"test:distribution:ts": "cd tests/distribution/typescript/ && npm install --package-lock=false && npm run build && npm run typecheck"
},
"dependencies": {
"fast-glob": "^3.3.2",
"picocolors": "^1.0.1",
"vite-plugin-auto-origin": "^1.1.0"
},
"peerDependencies": {
"vite": "^5.0 || ^6.0"
},
"devDependencies": {
"@types/node": "^20.8.2",
"@vitest/coverage-v8": "^1.6.0",
"memfs": "^4.9.2",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"vite": "^5.0 || ^6.0",
"vitest": "^1.6.0"
}
}