Fix package.json (#746)
* fix main and remove module export * fix types export * 3.0.0-beta.2 * we no longer need main export in package.json, the actual export will live under dist/ folder * adding version script per pika
This commit is contained in:
parent
e59db18432
commit
6f2a5efbb6
|
@ -3,6 +3,10 @@ Changelog
|
||||||
|
|
||||||
# 3.x release
|
# 3.x release
|
||||||
|
|
||||||
|
## v3.0.0-beta.2
|
||||||
|
|
||||||
|
- Fix: exporting `main` and `types` at the correct path, oops.
|
||||||
|
|
||||||
## v3.0.0-beta.1
|
## v3.0.0-beta.1
|
||||||
|
|
||||||
- **Breaking:** minimum supported Node.js version is now 10.
|
- **Breaking:** minimum supported Node.js version is now 10.
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "node-fetch",
|
"name": "node-fetch",
|
||||||
"version": "3.0.0-beta.1",
|
"version": "3.0.0-beta.2",
|
||||||
"description": "A light-weight module that brings window.fetch to node.js",
|
"description": "A light-weight module that brings window.fetch to node.js",
|
||||||
"main": "dist/index.js",
|
|
||||||
"module": "dist/index.mjs",
|
|
||||||
"types": "types/index.d.ts",
|
|
||||||
"files": [
|
"files": [
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"dist/**/*",
|
"dist/**/*",
|
||||||
|
@ -17,10 +14,12 @@
|
||||||
"build": "pika-pack --out dist/",
|
"build": "pika-pack --out dist/",
|
||||||
"prepare": "npm run build",
|
"prepare": "npm run build",
|
||||||
"prepublishOnly": "npm run build",
|
"prepublishOnly": "npm run build",
|
||||||
|
"publish": "pika publish",
|
||||||
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --throw-deprecation test/*.js",
|
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --throw-deprecation test/*.js",
|
||||||
"report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/*.js",
|
"report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/*.js",
|
||||||
"coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/*.js && codecov -f coverage/coverage-final.json",
|
"coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/*.js && codecov -f coverage/coverage-final.json",
|
||||||
"lint": "xo"
|
"lint": "xo",
|
||||||
|
"version": "npm run build"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in New Issue