fix: add explicit module declaration to type definitions (#16219)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
},
|
||||
"main": "lib/index.cjs.js",
|
||||
"module": "lib/index.esm.js",
|
||||
"types": "lib/types/index.d.ts",
|
||||
"types": "lib/index.d.ts",
|
||||
"browserslist": [
|
||||
"defaults",
|
||||
"not IE 11",
|
||||
@@ -37,7 +37,7 @@
|
||||
"/src"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "cross-env NODE_ENV=production rollup -c; npm run flowgen",
|
||||
"build": "npm run clean; cross-env NODE_ENV=production rollup -c; npm run generate:dts; npm run generate:flow",
|
||||
"build:browser-test": "rollup -c test/rollup.config.js",
|
||||
"build:fixtures": "set -ex; ./test/fixtures/noop-program/build.sh",
|
||||
"clean": "rimraf ./coverage ./lib",
|
||||
@@ -45,7 +45,8 @@
|
||||
"dev": "cross-env NODE_ENV=development rollup -c",
|
||||
"doc": "set -ex; typedoc",
|
||||
"doc:watch": "watch 'npm run doc' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
||||
"flowgen": "./scripts/flowgen.sh",
|
||||
"generate:dts": "./scripts/typegen.sh",
|
||||
"generate:flow": "flowgen lib/index.d.ts -o module.flow.js",
|
||||
"lint": "set -ex; npm run pretty; eslint . --ext .js,.ts",
|
||||
"lint:fix": "npm run pretty:fix && eslint . --fix",
|
||||
"lint:watch": "watch 'npm run lint:fix' . --wait=1 --ignoreDirectoryPattern=/doc/",
|
||||
@@ -126,10 +127,9 @@
|
||||
"prettier": "^2.0.0",
|
||||
"rimraf": "3.0.2",
|
||||
"rollup": "2.43.1",
|
||||
"rollup-plugin-flat-dts": "^1.0.3",
|
||||
"rollup-plugin-dts": "^3.0.1",
|
||||
"rollup-plugin-node-polyfills": "^0.2.1",
|
||||
"rollup-plugin-terser": "^7.0.2",
|
||||
"rollup-plugin-ts": "^1.3.7",
|
||||
"semantic-release": "^17.0.2",
|
||||
"sinon": "^10.0.0",
|
||||
"start-server-and-test": "^1.12.0",
|
||||
|
Reference in New Issue
Block a user