diff --git a/packages-backend/express/package.json b/packages-backend/express/package.json index 69b38b350c..a2ec04deb1 100644 --- a/packages-backend/express/package.json +++ b/packages-backend/express/package.json @@ -17,13 +17,7 @@ }, "main": "dist/express.cjs.js", "module": "dist/express.esm.js", - "typings": "./build/index.d.ts", - "types": "./build/index.d.ts", "files": ["dist", "package.json", "LICENSE", "README.md"], - "scripts": { - "prebuild": "rimraf build/**", - "build": "tsc -p tsconfig.build.json" - }, "dependencies": { "@babel/runtime": "7.12.5", "@babel/runtime-corejs3": "7.12.5", diff --git a/packages-backend/loggers/package.json b/packages-backend/loggers/package.json index d90526a22e..fa2a5371bc 100644 --- a/packages-backend/loggers/package.json +++ b/packages-backend/loggers/package.json @@ -24,13 +24,7 @@ }, "main": "dist/loggers.cjs.js", "module": "dist/loggers.esm.js", - "typings": "./build/index.d.ts", - "types": "./build/index.d.ts", "files": ["dist", "package.json", "LICENSE", "README.md"], - "scripts": { - "prebuild": "rimraf build/**", - "build": "tsc -p tsconfig.build.json" - }, "dependencies": { "@babel/runtime": "7.12.5", "@babel/runtime-corejs3": "7.12.5", diff --git a/packages/actions-global/package.json b/packages/actions-global/package.json index a7838868b8..d2de5f958d 100644 --- a/packages/actions-global/package.json +++ b/packages/actions-global/package.json @@ -17,16 +17,9 @@ }, "main": "dist/actions-global.cjs.js", "module": "dist/actions-global.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/application-components/package.json b/packages/application-components/package.json index 63fb4b973c..30f38f7381 100644 --- a/packages/application-components/package.json +++ b/packages/application-components/package.json @@ -17,8 +17,6 @@ }, "main": "dist/application-components.cjs.js", "module": "dist/application-components.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", "files": [ "dist", "materials/media-queries.css", @@ -27,12 +25,7 @@ "README.md" ], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/application-config/package.json b/packages/application-config/package.json index 5109d424a7..cd170e85e0 100644 --- a/packages/application-config/package.json +++ b/packages/application-config/package.json @@ -9,13 +9,7 @@ "directory": "packages/application-config" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": [ - "javascript", - "frontend", - "react", - "toolkit", - "config" - ], + "keywords": ["javascript", "frontend", "react", "toolkit", "config"], "license": "MIT", "private": false, "publishConfig": { @@ -23,23 +17,11 @@ }, "main": "dist/application-config.cjs.js", "module": "dist/application-config.esm.js", - "typings": "./build/typings/src/index.d.ts", - "types": "./build/typings/src/index.d.ts", - "files": [ - "dist", - "schema.json", - "package.json", - "LICENSE", - "README.md" - ], + "files": ["dist", "schema.json", "package.json", "LICENSE", "README.md"], "scripts": { "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf build/**", - "build": "yarn build:schema && yarn build:bundles && yarn build:typings", - "build:schema": "json2ts schema.json src/schema.ts --style.singleQuote --bannerComment '/* eslint-disable prettier/prettier */\n// This file was automatically generated by json-schema-to-typescript.\n// DO NOT MODIFY IT BY HAND. Instead, modify the source schema.json file.'", - "build:bundles": "babel src --out-dir build --extensions .ts --ignore src/types.ts,src/schema.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir build/typings" + "prebuild": "yarn build:schema", + "build:schema": "json2ts schema.json src/schema.ts --style.singleQuote --bannerComment '/* eslint-disable prettier/prettier */\n// This file was automatically generated by json-schema-to-typescript.\n// DO NOT MODIFY IT BY HAND. Instead, modify the source schema.json file.'" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/application-shell-connectors/package.json b/packages/application-shell-connectors/package.json index aa4d30b3b4..5d4be49503 100644 --- a/packages/application-shell-connectors/package.json +++ b/packages/application-shell-connectors/package.json @@ -17,21 +17,12 @@ }, "main": "dist/application-shell-connectors.cjs.js", "module": "dist/application-shell-connectors.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", "files": ["dist", "test-utils", "package.json", "LICENSE", "README.md"], "preconstruct": { "entrypoints": [".", "test-utils"] }, "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/** test-utils/**", - "build": "yarn build:bundles && yarn build:test-utils && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:test-utils": "cross-env NODE_ENV=development rollup -c ../../rollup.config.js -i ./src/test-utils/index.ts", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", - "postbuild:typings": "echo \"export * from '../dist/typings/test-utils';\" > test-utils/index.d.ts" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/application-shell/package.json b/packages/application-shell/package.json index 33ffc6c222..04554f0040 100644 --- a/packages/application-shell/package.json +++ b/packages/application-shell/package.json @@ -17,21 +17,12 @@ }, "main": "dist/application-shell.cjs.js", "module": "dist/application-shell.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", "files": ["dist", "test-utils", "package.json", "LICENSE", "README.md"], "preconstruct": { "entrypoints": [".", "test-utils"] }, "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/** test-utils/**", - "build": "yarn build:bundles && yarn build:test-utils && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts -d dist", - "build:bundles:watch": "yarn build:bundles -w", - "build:test-utils": "cross-env NODE_ENV=development rollup -c ../../rollup.config.js -i ./src/test-utils/index.ts", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", - "postbuild:typings": "echo \"export * from '../dist/typings/test-utils';\" > test-utils/index.d.ts" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/browser-history/package.json b/packages/browser-history/package.json index afe7aac6b1..7f2e545407 100644 --- a/packages/browser-history/package.json +++ b/packages/browser-history/package.json @@ -9,12 +9,7 @@ "directory": "packages/browser-history" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": [ - "javascript", - "frontend", - "react", - "toolkit" - ], + "keywords": ["javascript", "frontend", "react", "toolkit"], "license": "MIT", "private": false, "publishConfig": { @@ -22,21 +17,9 @@ }, "main": "dist/browser-history.cjs.js", "module": "dist/browser-history.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", - "files": [ - "dist", - "package.json", - "LICENSE", - "README.md" - ], + "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/constants/package.json b/packages/constants/package.json index 990bb09781..cef6364c73 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -9,12 +9,7 @@ "directory": "packages/constants" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": [ - "javascript", - "frontend", - "react", - "toolkit" - ], + "keywords": ["javascript", "frontend", "react", "toolkit"], "license": "MIT", "private": false, "publishConfig": { @@ -22,21 +17,9 @@ }, "main": "dist/constants.cjs.js", "module": "dist/constants.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", - "files": [ - "dist", - "package.json", - "LICENSE", - "README.md" - ], + "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 1abfd41f71..a0d394fbc8 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -22,8 +22,6 @@ }, "main": "dist/i18n.cjs.js", "module": "dist/i18n.esm.js", - "typings": "./dist/typings/src/index.d.ts", - "types": "./dist/typings/src/index.d.ts", "files": [ "compiled-data", "dist", @@ -33,11 +31,7 @@ ], "scripts": { "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/** && yarn compile-data", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts --dir dist", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", + "prebuild": "yarn compile-data", "compile-data": "formatjs compile-folder --format=$(pwd)/transifex-transformer.js --ast data compiled-data" }, "dependencies": { diff --git a/packages/jest-stylelint-runner/package.json b/packages/jest-stylelint-runner/package.json index d7e741a0af..f642d98aa9 100644 --- a/packages/jest-stylelint-runner/package.json +++ b/packages/jest-stylelint-runner/package.json @@ -15,7 +15,7 @@ "publishConfig": { "access": "public" }, - "files": ["package.json", "dist", "LICENSE", "README.md"], + "files": ["dist", "package.json", "LICENSE", "README.md"], "main": "index.js", "module": "index.js", "peerDependencies": { diff --git a/packages/l10n/package.json b/packages/l10n/package.json index 2e6852f04a..797b4bd0e5 100644 --- a/packages/l10n/package.json +++ b/packages/l10n/package.json @@ -17,16 +17,9 @@ }, "main": "dist/l10n.cjs.js", "module": "dist/l10n.esm.js", - "typings": "./dist/typings/src/index.d.ts", - "types": "./dist/typings/src/index.d.ts", "files": ["data", "dist", "package.json", "LICENSE", "README.md"], "scripts": { "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts -d dist", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", "generate-data": "node ./scripts/generate-l10n-data.js" }, "dependencies": { diff --git a/packages/mc-html-template/package.json b/packages/mc-html-template/package.json index f8d28c8522..8b24c9d2f0 100644 --- a/packages/mc-html-template/package.json +++ b/packages/mc-html-template/package.json @@ -9,12 +9,7 @@ "directory": "packages/mc-html-template" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": [ - "javascript", - "frontend", - "react", - "toolkit" - ], + "keywords": ["javascript", "frontend", "react", "toolkit"], "license": "MIT", "private": false, "publishConfig": { @@ -30,11 +25,6 @@ "LICENSE", "README.md" ], - "scripts": { - "prebuild": "rimraf build/**", - "build": "babel src --out-dir build", - "build:bundles:watch": "yarn build -w" - }, "dependencies": { "@babel/runtime": "7.12.5", "@babel/runtime-corejs3": "7.12.5", diff --git a/packages/mc-scripts/config/create-webpack-config-for-development.js b/packages/mc-scripts/config/create-webpack-config-for-development.js index e7fed82a27..f2ae327f9e 100644 --- a/packages/mc-scripts/config/create-webpack-config-for-development.js +++ b/packages/mc-scripts/config/create-webpack-config-for-development.js @@ -1,2 +1,3 @@ // For backwards compatibilty -module.exports = require('../build/config/create-webpack-config-for-development'); +const { createWebpackConfigForDevelopment } = require('../dist/mc-scripts.cjs'); +module.exports = createWebpackConfigForDevelopment; diff --git a/packages/mc-scripts/config/create-webpack-config-for-production.js b/packages/mc-scripts/config/create-webpack-config-for-production.js index a3b15bc346..8d01ab454d 100644 --- a/packages/mc-scripts/config/create-webpack-config-for-production.js +++ b/packages/mc-scripts/config/create-webpack-config-for-production.js @@ -1,2 +1,3 @@ // For backwards compatibilty -module.exports = require('../build/config/create-webpack-config-for-production'); +const { createWebpackConfigForProduction } = require('../dist/mc-scripts.cjs'); +module.exports = createWebpackConfigForProduction; diff --git a/packages/mc-scripts/config/vendors-to-transpile.js b/packages/mc-scripts/config/vendors-to-transpile.js index 2d95f82eee..2d4e5c499e 100644 --- a/packages/mc-scripts/config/vendors-to-transpile.js +++ b/packages/mc-scripts/config/vendors-to-transpile.js @@ -1,2 +1,3 @@ // For backwards compatibilty -module.exports = require('../build/config/vendors-to-transpile'); +const { vendorsToCompile } = require('../dist/mc-scripts.cjs'); +module.exports = vendorsToCompile; diff --git a/packages/mc-scripts/package.json b/packages/mc-scripts/package.json index ee1f955927..6eab519631 100644 --- a/packages/mc-scripts/package.json +++ b/packages/mc-scripts/package.json @@ -9,44 +9,20 @@ "directory": "packages/mc-scripts" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": [ - "javascript", - "frontend", - "react", - "toolkit" - ], + "keywords": ["javascript", "frontend", "react", "toolkit"], "license": "MIT", "private": false, "publishConfig": { "access": "public" }, "main": "dist/mc-scripts.cjs.js", - "files": [ - "bin", - "dist", - "config", - "package.json", - "LICENSE", - "README.md" - ], + "files": ["bin", "dist", "config", "package.json", "LICENSE", "README.md"], "bin": { "mc-scripts": "./bin/mc-scripts.js" }, - "scripts": { - "prebuild": "rimraf build/**", - "build": "babel src --out-dir build", - "build:bundles:watch": "yarn build -w" - }, "browserslist": { - "production": [ - ">1%", - "not op_mini all", - "not dead" - ], - "development": [ - "last 2 firefox versions", - "last 2 chrome versions" - ] + "production": [">1%", "not op_mini all", "not dead"], + "development": ["last 2 firefox versions", "last 2 chrome versions"] }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/notifications/package.json b/packages/notifications/package.json index b089b647b2..0127a3c6e0 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -9,12 +9,7 @@ "directory": "packages/notifications" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": [ - "javascript", - "frontend", - "react", - "toolkit" - ], + "keywords": ["javascript", "frontend", "react", "toolkit"], "license": "MIT", "private": false, "publishConfig": { @@ -22,21 +17,9 @@ }, "main": "dist/notifications.cjs.js", "module": "dist/notifications.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", - "files": [ - "dist", - "package.json", - "LICENSE", - "README.md" - ], + "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/permissions/package.json b/packages/permissions/package.json index 95a5f3222f..1433653ab7 100644 --- a/packages/permissions/package.json +++ b/packages/permissions/package.json @@ -17,16 +17,9 @@ }, "main": "dist/permissions.cjs.js", "module": "dist/permissions.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/react-notifications/package.json b/packages/react-notifications/package.json index a3a789d88a..062c982d5d 100644 --- a/packages/react-notifications/package.json +++ b/packages/react-notifications/package.json @@ -17,16 +17,9 @@ }, "main": "dist/react-notifications.cjs.js", "module": "dist/react-notifications.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/sdk/package.json b/packages/sdk/package.json index e4a128e56d..7b3b9e32bf 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -17,21 +17,12 @@ }, "main": "dist/sdk.cjs.js", "module": "dist/sdk.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", "files": ["dist", "test-utils", "package.json", "LICENSE", "README.md"], "preconstruct": { "entrypoints": [".", "test-utils"] }, "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/** test-utils/**", - "build": "yarn build:bundles && yarn build:test-utils && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:test-utils": "cross-env NODE_ENV=development rollup -c ../../rollup.config.js -i ./src/test-utils/index.ts", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", - "postbuild:typings": "echo \"export * from '../dist/typings/test-utils';\" > test-utils/index.d.ts" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/sentry/package.json b/packages/sentry/package.json index ea949dbbab..325d4391c9 100644 --- a/packages/sentry/package.json +++ b/packages/sentry/package.json @@ -9,12 +9,7 @@ "directory": "packages/sentry" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": [ - "javascript", - "frontend", - "react", - "toolkit" - ], + "keywords": ["javascript", "frontend", "react", "toolkit"], "license": "MIT", "private": false, "publishConfig": { @@ -22,21 +17,9 @@ }, "main": "dist/sentry.cjs.js", "module": "dist/sentry.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", - "files": [ - "dist", - "package.json", - "LICENSE", - "README.md" - ], + "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5", diff --git a/packages/url-utils/package.json b/packages/url-utils/package.json index be9c4589e2..e5b884ec18 100644 --- a/packages/url-utils/package.json +++ b/packages/url-utils/package.json @@ -9,12 +9,7 @@ "directory": "packages/url-utils" }, "homepage": "https://docs.commercetools.com/custom-applications", - "keywords": [ - "javascript", - "frontend", - "react", - "toolkit" - ], + "keywords": ["javascript", "frontend", "react", "toolkit"], "license": "MIT", "private": false, "publishConfig": { @@ -22,21 +17,9 @@ }, "main": "dist/url-utils.cjs.js", "module": "dist/url-utils.esm.js", - "typings": "./dist/typings/index.d.ts", - "types": "./dist/typings/index.d.ts", - "files": [ - "dist", - "package.json", - "LICENSE", - "README.md" - ], + "files": ["dist", "package.json", "LICENSE", "README.md"], "scripts": { - "prepare": "./../../scripts/version.js replace", - "prebuild": "rimraf dist/**", - "build": "yarn build:bundles && yarn build:typings", - "build:bundles": "cross-env NODE_ENV=production rollup -c ../../rollup.config.js -i ./src/index.ts", - "build:bundles:watch": "yarn build:bundles -w", - "build:typings": "cross-env tsc -p tsconfig.declarations.json --emitDeclarationOnly --declarationDir dist/typings" + "prepare": "./../../scripts/version.js replace" }, "dependencies": { "@babel/runtime": "7.12.5",