-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
161 lines (161 loc) · 5.37 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{
"name": "patha",
"version": "0.4.1",
"description": "File paths library. All you need to work with paths. Tiny drop-in replacement for 'path'. Works in Node, Browser, and Deno.",
"homepage": "https://github.com/aminya/patha",
"repository": "https://github.com/aminya/patha",
"license": "Apache-2.0",
"author": "Amin Yahyaabadi",
"exports": {
"import": "./dist/index.node.mjs",
"require": "./dist/index.node.cjs"
},
"main": "./dist/index.node.cjs",
"module": "./dist/index.node.mjs",
"main.browser": "./dist/index.browser.legacy.js",
"module.browser": "./dist/index.browser.mjs",
"module.deno": "./dist/index.deno.mjs",
"source": "./src/index.ts",
"browser": {
"path": "./node_modules/path-browserify",
"process": "./node_modules/process"
},
"targets": {
"main": {
"source": "./src/index-node.ts",
"context": "node",
"engines": {
"node": ">=12.x"
},
"optimize": true,
"includeNodeModules": {
"escape-string-regexp": true,
"replace-ext": false
},
"outputFormat": "commonjs",
"isLibrary": true
},
"module": {
"source": "./src/index.ts",
"context": "node",
"engines": {
"node": ">=16.x"
},
"optimize": true,
"includeNodeModules": false,
"outputFormat": "esmodule",
"isLibrary": true
},
"main.browser": {
"source": "./src/index-browser.ts",
"context": "browser",
"engines": {
"browsers": "> 0.5%"
},
"optimize": true,
"includeNodeModules": true,
"outputFormat": "global",
"isLibrary": true
},
"module.browser": {
"source": "./src/index-browser.ts",
"context": "browser",
"engines": {
"browsers": "last 2 versions"
},
"optimize": true,
"includeNodeModules": true,
"outputFormat": "esmodule",
"isLibrary": true
}
},
"files": [
"dist/",
"src/",
"tsconfig.json",
"dev/tsc-mjs.mjs",
"LICENSE_dependencies.txt"
],
"scripts": {
"build": "run-s clean build.tsc build.parcel build.types build.deno",
"build.parcel": "shx rm -rf dist/node/index.js* && cross-env NODE_ENV=production parcel build --target main --target module --target main.browser --target module.browser",
"build.types": "shx cp ./dist/index.d.ts ./dist/index.node.d.ts && shx cp ./dist/index.d.ts ./dist/index.node.d.cts && shx cp ./dist/index.d.ts ./dist/browser.d.ts && shx cp ./dist/index.d.ts ./dist/index.deno.d.ts",
"build.deno": "shx cp ./dist/index.browser.mjs ./dist/index.deno.mjs && shx cp ./dist/index.browser.mjs.map ./dist/index.deno.mjs.map",
"build.tsc": "tsc -p ./tsconfig.json && node ./dev/tsc-mjs.mjs",
"bump": "ncu -u -x execa,numerous && pnpm update",
"clean": "shx rm -rf dist && shx mkdir ./dist",
"dev": "cross-env NODE_ENV=development parcel watch",
"docs": "shx rm -rf ./README.md && pnpm exec readme --path ./dev/docs/readme.md -y && pnpm exec ts-readme --header-depth 3 && pnpm run format",
"format": "run-s lint.prettier",
"lint": "run-p --aggregate-output --continue-on-error lint.cspell lint.eslint lint.prettier",
"lint.cspell": "cspell lint --no-progress --show-suggestions",
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
"lint.prettier": "prettier --write .",
"prepare": "run-s build",
"test": "run-s build && run-p --continue-on-error --aggregate-output test.lint test.unit test.integration.node.js test.integration.node.mjs test.integration.deno",
"test.integration.node.js": "node ./test/node-integration.js",
"test.integration.node.mjs": "node ./test/node-integration.mjs",
"test.integration.deno": "deno run ./test/deno-integration.ts",
"test.lint": "run-p --aggregate-output --continue-on-error lint.cspell test.lint.eslint test.lint.prettier",
"test.lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/",
"test.lint.prettier": "prettier . --check",
"test.unit": "jest --runInBand"
},
"prettier": "prettier-config-atomic",
"dependencies": {
"escape-string-regexp": "^5.0.0",
"replace-ext": "^2.0.0"
},
"devDependencies": {
"@types/jest": "^29.0.0",
"cross-env": "7.0.3",
"cspell": "^8.0.0",
"eslint": "^9.0.0",
"eslint-config-atomic": "^1.18.1",
"jest": "^29.0.0",
"npm-check-updates": "^17.0.0",
"npm-run-all2": "^7.0.0",
"parcel": "2.12.0",
"prettier": "3.3.3",
"prettier-config-atomic": "^4.0.0",
"readme-md-generator": "^1.0.0",
"shx": "0.3.4",
"terser-config-atomic": "^1.0.0",
"ts-jest": "^29.0.0",
"ts-readme": "^1.1.3",
"typescript": "^5.0.0"
},
"optionalDependencies": {
"@types/node": "^20.0.0",
"@types/replace-ext": "^2.0.0",
"path-browserify": "^1.0.1",
"process": "^0.11.10"
},
"keywords": [
"file-path",
"path",
"file",
"prefix",
"extension",
"fs",
"file system",
"node-path",
"path-extra",
"paths",
"path-plus"
],
"pnpm": {
"overrides": {
"eslint": "^8.23.0",
"prettier": "2.7.1",
"lru-cache": "7.8.1",
"core-js": "*",
"babel-eslint": "npm:@babel/eslint-parser"
},
"peerDependencyRules": {
"allowedVersions": {
"eslint": "*"
}
}
}
}