diff --git a/package.json b/package.json index 3fd7993c2e..5518472b58 100644 --- a/package.json +++ b/package.json @@ -18,8 +18,8 @@ "build": "npm run lerna run build", "lerna": "lerna", "lint": "npm run lerna run lint", - "prepublishOnly": "npm run lint && npm run test && npm run build", - "publish": "lerna exec 'npm publish'", + "prepublishOnly": "npm run build && npm run lint && npm run test", + "publish": "lerna publish", "test": "npm run lerna run test", "test-package": "cd packages/webpack-plugin && npm run test-package" }, diff --git a/packages/cli-utils/package.json b/packages/cli-utils/package.json index 647af3849c..d7552e9d14 100644 --- a/packages/cli-utils/package.json +++ b/packages/cli-utils/package.json @@ -12,7 +12,6 @@ "scripts": { "build": "babel src -d lib", "lint": "eslint .", - "prepublishOnly": "npm run build", "test": "jest --passWithNoTests src " }, "keywords": [], diff --git a/packages/html-templates/package.json b/packages/html-templates/package.json index c33ec39e51..7b74d8bf06 100644 --- a/packages/html-templates/package.json +++ b/packages/html-templates/package.json @@ -6,7 +6,6 @@ "scripts": { "build": "rm -fr ./dist && cross-env NODE_ENV=production webpack --config webpack.config.production.js --mode production", "lint": "eslint . --ext .jsx,.js --cache --cache-location ./node_modules/.eslintcache", - "prepublishOnly": "npm run lint && npm test && npm run build", "start": "cross-env NODE_ENV=development start-storybook -p 8090 -c build/storybook", "test": "jest build/storybook" }, diff --git a/packages/ui/package.json b/packages/ui/package.json index 04a49cba7a..75faf8e41d 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -10,7 +10,6 @@ "build-esm": "rm -fr ./lib-esm && babel -D src -d lib-esm --ignore **/__tests__/** --ignore /prototypes/**", "generate-chart-colors": "node scripts/generate-chart-colors.js", "lint": "eslint . --ext .jsx,.js --cache --cache-location ./node_modules/.eslintcache", - "prepublishOnly": "npm run build", "start": "cross-env NODE_ENV=development start-storybook -c ./build/storybook -p 8080", "test": "npm run test:unit && npm run test:storyshots", "test:unit": "jest src --passWithNoTests", diff --git a/packages/utils/package.json b/packages/utils/package.json index 8c00fcc0c8..90f626ff0f 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -15,7 +15,6 @@ "build-lib": "rm -fr ./lib && babel -D src -d lib --ignore **/__tests__/** ", "build-esm": "rm -fr ./lib-esm && babel -D src -d lib-esm --ignore **/__tests__/** --config-file=./.babelrc.esm.js", "lint": "eslint . --cache --cache-location ./node_modules/.eslintcache", - "prepublishOnly": "npm run lint && npm test && npm run build", "test": "jest src" }, "keywords": [], diff --git a/packages/webpack-plugin/package.json b/packages/webpack-plugin/package.json index 5f563dd17c..4458dda4c7 100644 --- a/packages/webpack-plugin/package.json +++ b/packages/webpack-plugin/package.json @@ -12,7 +12,6 @@ "scripts": { "build": "babel src -d lib", "lint": "eslint .", - "prepublishOnly": "npm run build", "test": "jest --passWithNoTests src ", "test-package": "jest test/package/*.test.js" },