Skip to content

Commit 5578fb9

Browse files
authored
Simplify build steps (#1216)
This consolidates copying of flat files into the build step. This also removes "contributors" from the package since that's super outdated and no longer relevant.
1 parent 40481f1 commit 5578fb9

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22
"name": "graphql",
33
"version": "0.12.3",
44
"description": "A Query Language and Runtime which can target any service.",
5-
"contributors": [
6-
"Lee Byron <[email protected]> (http://leebyron.com/)",
7-
"Nicholas Schrock <[email protected]>",
8-
"Daniel Schafer <[email protected]>"
9-
],
105
"license": "MIT",
116
"main": "index.js",
127
"module": "module/index.js",
@@ -29,8 +24,9 @@
2924
"prettier": "prettier --write 'src/**/*.js'",
3025
"check": "flow check",
3126
"check-cover": "for file in {src/*.js,src/**/*.js}; do echo $file; flow coverage $file; done",
32-
"build": "npm run build:clean && npm run build:npm && npm run build:npm-flow && npm run build:module && npm run build:module-flow && npm run build:package-json",
33-
"build:clean": "rm -rf ./dist",
27+
"build": "npm run build:clean && npm run build:cp && npm run build:npm && npm run build:npm-flow && npm run build:module && npm run build:module-flow && npm run build:package-json",
28+
"build:clean": "rm -rf ./dist && mkdir ./dist",
29+
"build:cp": "cp README.md LICENSE ./dist",
3430
"build:package-json": "node ./resources/copy-package-json.js",
3531
"build:npm": "babel src --optional runtime --ignore __tests__ --out-dir dist/",
3632
"build:npm-flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done",

resources/gitpublish.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ rm -rf npm/*
1919

2020
# Copy over necessary files
2121
cp -r dist/* npm/
22-
cp README.md npm/
23-
cp LICENSE npm/
2422

2523
# Reference current commit
2624
HEADREV=`git rev-parse HEAD`

0 commit comments

Comments
 (0)