Skip to content

Commit

Permalink
Do not transpile JS packages twice
Browse files Browse the repository at this point in the history
  • Loading branch information
scinos committed Aug 13, 2020
1 parent 0f3a101 commit 9680f61
Show file tree
Hide file tree
Showing 13 changed files with 41 additions and 40 deletions.
6 changes: 3 additions & 3 deletions packages/composite-checkout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "1.0.0",
"description": "A checkout component for Automattic brands",
"main": "dist/cjs/public-api.js",
"module": "dist/esm/public-api.js",
"module": "src/public-api.js",
"sideEffects": false,
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
},
"files": [
"dist",
Expand Down
6 changes: 3 additions & 3 deletions packages/format-currency/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0-alpha.0",
"description": "JavaScript library for formatting currency",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -29,8 +29,8 @@
},
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
},
"types": "types"
}
6 changes: 3 additions & 3 deletions packages/i18n-calypso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "5.0.0",
"description": "i18n JavaScript library on top of Tannin originally used in Calypso",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"types": "types/index.d.ts",
"sideEffects": false,
"repository": {
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
}
}
6 changes: 3 additions & 3 deletions packages/load-script/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Async Script Loader.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"keywords": [
"wordpress"
],
Expand All @@ -28,7 +28,7 @@
},
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
}
}
6 changes: 3 additions & 3 deletions packages/photon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.0.0",
"description": "JavaScript library for the WordPress.com Photon image manipulation service",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": false,
"repository": {
"type": "git",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
}
}
6 changes: 3 additions & 3 deletions packages/popup-monitor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Utility to facilitate the monitoring of a popup window close action.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": false,
"keywords": [
"wordpress",
Expand All @@ -29,8 +29,8 @@
],
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
},
"dependencies": {
"lodash": "^4.17.15"
Expand Down
6 changes: 3 additions & 3 deletions packages/request-external-access/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Utility for requesting authorization of sharing services.",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": false,
"keywords": [
"wordpress",
Expand All @@ -30,8 +30,8 @@
],
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
},
"dependencies": {
"@automattic/popup-monitor": "^1.0.0"
Expand Down
6 changes: 3 additions & 3 deletions packages/social-previews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.2",
"description": "A suite of components to generate previews for a post for both social and search engines",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": [
"*.css",
"*.scss"
Expand Down Expand Up @@ -34,8 +34,8 @@
],
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile && copy-assets"
"build": "transpile && copy-assets",
"prepack": "yarn run clean && yarn run build"
},
"dependencies": {
"lodash": "^4.17.15",
Expand Down
6 changes: 3 additions & 3 deletions packages/tree-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"homepage": "https://github.com/Automattic/wp-calypso",
"license": "GPL-2.0-or-later",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -29,7 +29,7 @@
],
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
}
}
6 changes: 3 additions & 3 deletions packages/viewport-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "React helpers for tracking viewport changes",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -30,8 +30,8 @@
},
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/viewport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"description": "Vanilla helpers for tracking viewport changes",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": false,
"repository": {
"type": "git",
Expand All @@ -18,8 +18,8 @@
"homepage": "https://github.com/Automattic/wp-calypso/tree/HEAD/packages/viewport#readme",
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/wpcom-proxy-request/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "6.0.0",
"description": "Proxied cookie-authenticated REST API requests to WordPress.com",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"sideEffects": false,
"keywords": [
"browser",
Expand Down Expand Up @@ -37,8 +37,8 @@
"types": "types",
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "npm run clean",
"prepare": "transpile"
"build": "transpile",
"prepack": "yarn run clean && yarn run build"
},
"dependencies": {
"@babel/runtime": "^7.11.1",
Expand Down
9 changes: 5 additions & 4 deletions packages/wpcom.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"description": "Official JavaScript library for the WordPress.com REST API",
"version": "6.0.0",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"module": "src/index.js",
"author": "Automattic, Inc.",
"private": true,
"scripts": {
"clean": "npx rimraf dist",
"prepublish": "yarn run clean",
"prepare": "run-s build:modules build:bundle",
"build": "run-s build:modules build:bundle",
"prepack": "yarn run clean && yarn run build",
"build:modules": "transpile",
"build:bundle": "webpack --display errors-only"
},
Expand All @@ -34,7 +34,8 @@
],
"browser": {
"./dist/cjs/lib/util/fs.js": "./dist/cjs/lib/util/fs-browser.js",
"./dist/esm/lib/util/fs.js": "./dist/esm/lib/util/fs-browser.js"
"./dist/esm/lib/util/fs.js": "./dist/esm/lib/util/fs-browser.js",
"./src/lib/util/fs.js": "./src/lib/util/fs-browser.js"
},
"dependencies": {
"@babel/runtime": "^7.11.1",
Expand Down

0 comments on commit 9680f61

Please sign in to comment.