forked from developit/unfetch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
93 lines (93 loc) · 2.25 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
{
"name": "unfetch",
"version": "5.0.0",
"description": "Bare minimum fetch polyfill in 500 bytes",
"unpkg": "./polyfill/index.js",
"main": "./dist/unfetch.js",
"module": "./dist/unfetch.mjs",
"jsnext:main": "./dist/unfetch.mjs",
"umd:main": "./dist/unfetch.umd.js",
"scripts": {
"test": "eslint && tsc -p . --noEmit && NODE_OPTIONS=--experimental-vm-modules jest",
"build": "microbundle src/index.mjs -f cjs,esm,umd && microbundle polyfill/polyfill.mjs -o polyfill/index.js -f cjs --no-sourcemap",
"prepare": "npm run -s build",
"release": "cross-var npm run build -s && cross-var git commit -am $npm_package_version && cross-var git tag $npm_package_version && git push && git push --tags && npm publish"
},
"exports": {
".": {
"import": "./index.mjs",
"default": "./index.js"
},
"./polyfill": {
"default": "./polyfill/index.js"
},
"./package.json": "./package.json",
"./*": "./*"
},
"workspaces": [
"./packages/isomorphic-unfetch"
],
"repository": "developit/unfetch",
"keywords": [
"fetch",
"polyfill",
"xhr",
"ajax"
],
"homepage": "https://github.com/developit/unfetch",
"authors": [
"Jason Miller <[email protected]>"
],
"license": "MIT",
"types": "src/index.d.ts",
"files": [
"src",
"dist",
"polyfill"
],
"eslintConfig": {
"extends": "developit"
},
"jest": {
"testEnvironmentOptions": {
"url": "http://localhost/"
},
"testMatch": [
"<rootDir>/test/**/*.test.?(m)[jt]s?(x)"
],
"setupFiles": [
"<rootDir>/test/_setup.js"
],
"moduleFileExtensions": [
"mjs",
"js",
"ts"
],
"transform": {
"^.+\\.m?[jt]sx?$": "babel-jest"
}
},
"babel": {
"env": {
"test": {
"presets": [
"@babel/preset-env",
"@babel/preset-typescript"
]
}
}
},
"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@types/jest": "^29.2.5",
"@types/node": "^18.11.18",
"cross-var": "^1.1.0",
"eslint": "^7.32.0",
"eslint-config-developit": "^1.2.0",
"jest": "^29.3.1",
"microbundle": "^0.15.1",
"typescript": "^4.9.4"
}
}