forked from slevithan/regex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
52 lines (52 loc) · 1.59 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
{
"name": "regex",
"version": "4.4.0",
"description": "Regex template tag with extended syntax, context-aware interpolation, and always-on best practices",
"author": "Steven Levithan",
"license": "MIT",
"type": "module",
"exports": {
".": {
"types": "./types/regex.d.ts",
"import": "./dist/regex.mjs",
"require": "./dist/regex.cjs"
},
"./atomic": {
"types": "./types/atomic.d.ts",
"import": "./src/atomic.js"
}
},
"browser": "./dist/regex.min.js",
"types": "./types/regex.d.ts",
"scripts": {
"bundle:global": "esbuild src/regex.js --global-name=Regex --bundle --minify --sourcemap --outfile=dist/regex.min.js",
"bundle:esm": "esbuild src/regex.js --format=esm --bundle --sourcemap --outfile=dist/regex.mjs",
"bundle:cjs": "esbuild src/regex.js --format=cjs --bundle --sourcemap --outfile=dist/regex.cjs",
"types": "tsc src/regex.js --rootDir src --declaration --allowJs --emitDeclarationOnly --outDir types",
"prebuild": "rm -rf dist/* types/*",
"build": "npm run bundle:global && npm run bundle:esm && npm run bundle:cjs && npm run types",
"pretest": "npm run build",
"test": "jasmine && tsc --project spec/types/tsconfig.test.json",
"prepare": "npm test"
},
"files": [
"dist",
"src",
"types"
],
"repository": {
"type": "git",
"url": "git+https://github.com/slevithan/regex.git"
},
"keywords": [
"regex",
"regexp"
],
"devDependencies": {
"esbuild": "^0.24.0",
"expect-type": "^1.1.0",
"jasmine": "^5.4.0",
"regex-utilities": "^2.3.0",
"typescript": "^5.6.3"
}
}