Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Commit fec29ab

Browse files
committed
Fix Build
1 parent be1dfe7 commit fec29ab

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

package.json

+14-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
22
"private": true,
3+
"workspaces": [
4+
"packages/*"
5+
],
36
"scripts": {
4-
"build": "node packages/react-scripts/scripts/build.js",
7+
"build": "cd packages/react-scripts && node scripts/build.js",
58
"changelog": "lerna-changelog",
6-
"create-react-app": "tasks/cra.sh",
9+
"create-react-app": "node tasks/cra.js",
710
"e2e": "tasks/e2e-simple.sh",
811
"e2e:docker": "tasks/local-test.sh",
9-
"postinstall": "node bootstrap.js && cd packages/react-error-overlay/ && npm run build:prod",
10-
"publish": "tasks/release.sh",
11-
"start": "node packages/react-scripts/scripts/start.js",
12-
"test": "node packages/react-scripts/scripts/test.js --env=jsdom",
13-
"format": "prettier --trailing-comma es5 --single-quote --write \"packages/*/*.js\" \"packages/*/!(node_modules)/**/*.js\"",
12+
"postinstall": "cd packages/react-error-overlay/ && yarn build:prod",
13+
"publish": "tasks/publish.sh",
14+
"start": "cd packages/react-scripts && node scripts/start.js",
15+
"screencast": "svg-term --cast hItN7sl5yfCPTHxvFg5glhhfp --out screencast.svg --window",
16+
"test": "cd packages/react-scripts && node scripts/test.js --env=jsdom",
17+
"format": "prettier --trailing-comma es5 --single-quote --write 'packages/*/*.js' 'packages/*/!(node_modules)/**/*.js'",
1418
"precommit": "lint-staged"
1519
},
1620
"devDependencies": {
@@ -20,10 +24,11 @@
2024
"@types/react-dom": "^15.5.0",
2125
"eslint": "^4.4.1",
2226
"husky": "^0.13.2",
23-
"lerna": "^2.0.0",
27+
"lerna": "2.6.0",
2428
"lerna-changelog": "^0.6.0",
2529
"lint-staged": "^3.3.1",
26-
"prettier": "^1.5.2"
30+
"prettier": "1.6.1",
31+
"svg-term-cli": "^2.0.3"
2732
},
2833
"lint-staged": {
2934
"*.js": [

tasks/e2e-simple.sh

-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ cd test-app
232232
# Test the build
233233
yarn build
234234
# Check for expected output
235-
pwd
236235
exists build/*.html
237236
exists build/static/js/*.js
238237
exists build/static/css/*.css

tasks/replace-own-deps.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ const packagesDir = path.join(__dirname, '../packages');
1616
const pkgFilename = path.join(packagesDir, 'react-scripts/package.json');
1717
const data = require(pkgFilename);
1818

19-
fs.readdirSync(packagesDir).forEach(name => {
19+
fs.readdirSync(packagesDir).forEach((name) => {
2020
if (data.dependencies[name]) {
2121
data.dependencies[name] = 'file:' + path.join(packagesDir, name);
2222
}
23-
});
23+
})
2424

25-
fs.writeFile(pkgFilename, JSON.stringify(data, null, 2), 'utf8', err => {
25+
fs.writeFile(pkgFilename, JSON.stringify(data, null, 2), 'utf8', (err) => {
2626
if (err) throw err;
2727
console.log('Replaced local dependencies.');
2828
});

0 commit comments

Comments
 (0)