-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
70 lines (70 loc) · 2.38 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
{
"name": "uri-tag",
"version": "2.0.0",
"author": "mkrause",
"license": "MIT",
"repository": "https://github.com/mkrause/uri-tag",
"description": "ES6 template literal tag to encode URI components",
"keywords": [
"uri",
"url",
"encode",
"encoding",
"escape",
"escaping",
"tag",
"template",
"es2015-tag",
"es6-tag",
"es6",
"tagged"
],
"files": [
"src/",
"dist/"
],
"engines": {
"node": ">= 14.15"
},
"type": "module",
"main": "./dist/node-cjs/uri.cjs",
"types": "./dist/types/uri.d.cts",
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/types/uri.d.mts",
"default": "./dist/node-esm/uri.mjs"
},
"require": {
"types": "./dist/types/uri.d.cts",
"default": "./dist/node-cjs/uri.cjs"
},
"default": "./dist/node-esm/uri.mjs"
}
},
"scripts": {
"_build": "NODE_ENV=production babel src --source-maps=true --delete-dir-on-start",
"build:cjs": "BABEL_ENV=cjs npm run _build -- --out-dir=dist/node-cjs --out-file-extension=.cjs",
"build:esm": "BABEL_ENV=esm npm run _build -- --out-dir=dist/node-esm --out-file-extension=.mjs",
"build:types": "mkdir -p ./dist/types && cp src/uri.d.ts ./dist/types/uri.d.mts && cp src/uri.d.ts ./dist/types/uri.d.cts",
"build": "npm run build:esm && npm run build:cjs && npm run build:types",
"test:unit": "NODE_ENV=test BABEL_ENV=cjs mocha --require @babel/register --recursive tests",
"test:imports": "node tests/import-cjs.cjs && node tests/import-esm.mjs",
"test:types": "tsc && npm run build:types && tsd --typings=src/uri.d.ts --files=tests/uri.test-d.ts && echo '[tsd] success'",
"test": "npm run test:unit && npm run test:imports && npm run test:types",
"prepublishOnly": "npm run build && npm test"
},
"devDependencies": {
"@babel/core": "^7.21.4",
"@babel/register": "^7.21.0",
"@babel/cli": "^7.21.0",
"@babel/preset-env": "^7.21.4",
"typescript": "^5.0.4",
"tsd": "^0.28.1",
"mocha": "^10.2.0",
"chai": "^4.3.7"
},
"dependencies": {}
}