Skip to content

Commit

Permalink
Run build before publishing to prevent uploading stale code (#479)
Browse files Browse the repository at this point in the history
* Run `build` before publishing to prevent uploading stale code

* Update package-lock to try and fix failing test
  • Loading branch information
shadaj authored Jul 5, 2018
1 parent b8e4c4e commit c00df3d
Show file tree
Hide file tree
Showing 9 changed files with 6,758 additions and 698 deletions.
7,433 changes: 6,743 additions & 690 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/apollo-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
"build": "tsc -p .",
"postpack": "rm -f oclif.manifest.json",
"posttest": "tsc -p . --noEmit",
"prepack": "rm -rf lib && tsc && oclif-dev manifest && oclif-dev readme",
"prepack": "npm run build && oclif-dev manifest && oclif-dev readme",
"precommit": "pretty-quick --staged",
"test": "jest",
"version": "oclif-dev readme && git add README.md"
Expand Down
3 changes: 2 additions & 1 deletion packages/apollo-codegen-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"prebuild": "npm run clean",
"build": "tsc -p .",
"watch": "tsc -w -p .",
"test": "./node_modules/.bin/jest"
"test": "./node_modules/.bin/jest",
"prepack": "npm run build"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/apollo-codegen-flow-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"prebuild": "npm run clean",
"build": "tsc -p .",
"watch": "tsc -w -p .",
"test": "./node_modules/.bin/jest"
"test": "./node_modules/.bin/jest",
"prepack": "npm run build"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/apollo-codegen-flow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"prebuild": "npm run clean",
"build": "tsc -p .",
"watch": "tsc -w -p .",
"test": "./node_modules/.bin/jest"
"test": "./node_modules/.bin/jest",
"prepack": "npm run build"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/apollo-codegen-scala/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"prebuild": "npm run clean",
"build": "tsc -p .",
"watch": "tsc -w -p .",
"test": "./node_modules/.bin/jest"
"test": "./node_modules/.bin/jest",
"prepack": "npm run build"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/apollo-codegen-swift/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"prebuild": "npm run clean",
"build": "tsc -p .",
"watch": "tsc -w -p .",
"test": "./node_modules/.bin/jest"
"test": "./node_modules/.bin/jest",
"prepack": "npm run build"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/apollo-codegen-typescript-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"prebuild": "npm run clean",
"build": "tsc -p .",
"watch": "tsc -w -p .",
"test": "./node_modules/.bin/jest"
"test": "./node_modules/.bin/jest",
"prepack": "npm run build"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion packages/apollo-codegen-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"prebuild": "npm run clean",
"build": "tsc -p .",
"watch": "tsc -w -p .",
"test": "./node_modules/.bin/jest"
"test": "./node_modules/.bin/jest",
"prepack": "npm run build"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit c00df3d

Please sign in to comment.