Skip to content

Commit

Permalink
fix(boilerplate): Remove hack* scripts as they don't appear to be doi…
Browse files Browse the repository at this point in the history
…ng anything (#1637 by @harrisrobin)
  • Loading branch information
harrisrobin authored Mar 24, 2021
1 parent 3cc57e7 commit 9214657
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions boilerplate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
"format:json": "prettier --write \"**/*.json\"",
"format:md": "prettier --write \"**/*.md\"",
"format:ts": "prettier --write \"**/*.ts{,x}\"",
"hack:types-react-navigation": "rimraf node_modules/@types/react-navigation/node_modules/@types",
"hack:types-react-native": "rimraf node_modules/@types/react-native/node_modules/@types",
"hack:types-react-test-renderer": "rimraf node_modules/@types/react-test-renderer/node_modules/@types",
"lint": "eslint index.js app storybook test --fix --ext .js,.ts,.tsx && yarn format",
"patch": "patch-package",
"storybook": "start-storybook -p 9001 -c ./storybook",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ export default {
.replace(/hello-world/g, projectNameKebab)
let packageJson = JSON.parse(packageJsonRaw)

packageJson.scripts.prepare = "npm-run-all patch hack:*"
if (expo) {
const merge = require("deepmerge-json")
const expoJson = filesystem.read("package.expo.json", "json")
packageJson = merge(packageJson, expoJson)
}

filesystem.write("package.json", packageJson)

// More Expo-specific changes
Expand Down

0 comments on commit 9214657

Please sign in to comment.