-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
87 lines (87 loc) · 2.82 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"name": "esbuild-plugin-define",
"version": "0.5.0",
"description": "esbuild plugin to define global identifiers",
"license": "MIT",
"author": {
"email": "eric@webdeveric.com",
"name": "Eric King",
"url": "http://webdeveric.com/"
},
"keywords": [
"esbuild",
"plugin",
"define"
],
"repository": {
"type": "git",
"url": "https://github.com/webdeveric/esbuild-plugin-define.git"
},
"bugs": {
"url": "https://github.com/webdeveric/esbuild-plugin-define/issues"
},
"homepage": "https://github.com/webdeveric/esbuild-plugin-define",
"type": "module",
"main": "./dist/cjs/plugin.js",
"types": "./dist/types/plugin.d.ts",
"packageManager": "pnpm@9.11.0+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b",
"engines": {
"node": ">=18.14.0"
},
"exports": {
".": {
"types": "./dist/types/plugin.d.ts",
"require": "./dist/cjs/plugin.js",
"import": "./dist/mjs/plugin.js"
},
"./*": {
"types": "./dist/types/*.d.ts",
"require": "./dist/cjs/*.js",
"import": "./dist/mjs/*.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
"scripts": {
"lint": "eslint --fix ./*{js,cjs,mjs} ./src/",
"clean": "rimraf ./dist/",
"prebuild": "pnpm clean",
"build": "tsc --build tsconfig.cjs.json tsconfig.mjs.json --force",
"postbuild": "echo '{\"type\":\"commonjs\"}' > ./dist/cjs/package.json && echo '{\"type\":\"module\"}' > ./dist/mjs/package.json && pnpm validate",
"validate": "validate-package-exports --check --verify --info",
"typecheck": "tsc --build --verbose --noEmit",
"spellcheck": "cspell --no-progress './{.github,src,test}/**/*.{ts,js,json}' './*.{md,js}' './package.json'",
"format": "prettier --write ./*.{js,json,md} ./src/ ./test/ --no-error-on-unmatched-pattern",
"test": "vitest -c vitest.config.mts",
"coverage": "vitest run --coverage",
"prepack": "pnpm build",
"prepublishOnly": "pnpm typecheck && pnpm spellcheck && pnpm lint && pnpm coverage",
"prepare": "husky"
},
"prettier": "@webdeveric/prettier-config",
"peerDependencies": {
"esbuild": ">=0.15"
},
"devDependencies": {
"@vitest/coverage-v8": "^2.1.1",
"@webdeveric/eslint-config-ts": "^0.11.0",
"@webdeveric/prettier-config": "^0.3.0",
"cspell": "^8.14.4",
"esbuild": "^0.24.0",
"eslint": "^8.57.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.3",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-prettier": "^5.2.1",
"glob": "^10.4.5",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"rimraf": "^5.0.10",
"typescript": "^5.6.2",
"validate-package-exports": "^0.6.1",
"vitest": "^2.1.1"
}
}