Skip to content

Commit

Permalink
Rename packages to modules (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameskerr authored Mar 8, 2024
1 parent c52f672 commit 5b5ad72
Show file tree
Hide file tree
Showing 90 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@

Run `yarn build && yarn test` from the root of the repo.

To test individual packages, cd into them and run `yarn test`. For example, running the unit tests would be `cd packages/react-arborist && yarn test`.
To test individual modules, cd into them and run `yarn test`. For example, running the unit tests would be `cd modules/react-arborist && yarn test`.

# Publishing a Release

### Release Branch

1. Checkout main locally
2. Increment the version number in packages/react-arborist/package.json
2. Increment the version number in modules/react-arborist/package.json
3. Create a branch called release/v0.0.0
4. Open a PR to main
5. Test, review, and merge, delete branch
Expand Down
2 changes: 1 addition & 1 deletion bin/publish
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh

yarn build
cp README.md packages/react-arborist/README.md
cp README.md modules/react-arborist/README.md
yarn workspace react-arborist npm publish $@
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-arborist-monorepo",
"workspaces": [
"./packages/*"
"./modules/*"
],
"scripts": {
"build": "yarn workspaces foreach --all run build",
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2995,9 +2995,9 @@ __metadata:
languageName: node
linkType: hard

"e2e@workspace:packages/e2e":
"e2e@workspace:modules/e2e":
version: 0.0.0-use.local
resolution: "e2e@workspace:packages/e2e"
resolution: "e2e@workspace:modules/e2e"
dependencies:
cypress: "npm:^13.6.1"
serve: "npm:^14.2.1"
Expand Down Expand Up @@ -6878,9 +6878,9 @@ __metadata:
languageName: unknown
linkType: soft

"react-arborist@workspace:*, react-arborist@workspace:packages/react-arborist":
"react-arborist@workspace:*, react-arborist@workspace:modules/react-arborist":
version: 0.0.0-use.local
resolution: "react-arborist@workspace:packages/react-arborist"
resolution: "react-arborist@workspace:modules/react-arborist"
dependencies:
"@types/jest": "npm:^29.5.11"
"@types/react": "npm:^18.2.43"
Expand Down Expand Up @@ -7533,9 +7533,9 @@ __metadata:
languageName: node
linkType: hard

"showcase@workspace:packages/showcase":
"showcase@workspace:modules/showcase":
version: 0.0.0-use.local
resolution: "showcase@workspace:packages/showcase"
resolution: "showcase@workspace:modules/showcase"
dependencies:
"@types/node": "npm:20.10.4"
"@types/react": "npm:18.2.43"
Expand Down

0 comments on commit 5b5ad72

Please sign in to comment.