94 lines
2.2 KiB
JSON
94 lines
2.2 KiB
JSON
{
|
|
"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 <jason@developit.ca>"
|
|
],
|
|
"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": "^8.30.0",
|
|
"eslint-config-developit": "^1.2.0",
|
|
"jest": "^29.3.1",
|
|
"microbundle": "^0.15.1",
|
|
"typescript": "^4.9.4"
|
|
}
|
|
}
|