Skip to content

Commit c1c6b45

Browse files
Enhance package.json scripts for improved workspace management
- Added new scripts for `yalc:publish`, `yalc`, and `publish` in the root package.json to streamline publishing processes. - Updated the react-on-rails package.json to utilize `yalc` commands and removed redundant `start` script for clarity. These changes improve the overall command execution and maintain consistency across the workspace.
1 parent eab8e2a commit c1c6b45

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@
6060
"test": "yarn workspaces run test",
6161
"clean": "yarn workspaces run clean",
6262
"start": "yarn workspaces run start",
63-
"prepack": "yarn workspaces run prepack",
64-
"prepare": "yarn workspaces run prepare",
65-
"prepublishOnly": "yarn workspaces run prepublishOnly",
6663
"build": "yarn workspaces run build",
6764
"build-watch": "yarn workspaces run build-watch",
6865
"lint": "nps eslint",
66+
"yalc:publish": "yarn workspaces run yalc:publish",
67+
"yalc": "yarn workspaces run yalc",
68+
"publish": "yarn workspaces run publish",
6969
"check": "yarn run lint && yarn workspaces run check",
7070
"type-check": "yarn workspaces run type-check",
7171
"release:patch": "yarn workspaces run release:patch",

packages/react-on-rails/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@
1010
"clean": "rm -rf ./lib",
1111
"test": "cd ../.. && jest packages/react-on-rails/tests",
1212
"type-check": "yarn run tsc --noEmit --noErrorTruncation",
13-
"start": "nps",
1413
"prepack": "nps build.prepack",
1514
"prepare": "nps build.prepack",
1615
"prepublishOnly": "yarn run build",
17-
"check": "yarn run test && yarn run type-check",
16+
"yalc:publish": "yalc publish",
17+
"yalc": "yalc",
1818
"release:patch": "scripts/release patch",
1919
"release:minor": "scripts/release minor",
20-
"release:major": "scripts/release major",
21-
"postinstall": "test -f ../../.lefthook.yml && test -d ../../.git && command -v bundle >/dev/null 2>&1 && cd ../.. && bundle exec lefthook install || true"
20+
"release:major": "scripts/release major"
2221
},
2322
"repository": {
2423
"type": "git",

0 commit comments

Comments
 (0)