Skip to content

Commit

Permalink
Improve monorepo structure
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Aug 30, 2023
1 parent 619ca7f commit f642af2
Show file tree
Hide file tree
Showing 30 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ jobs:
- name: Publish with latest tag
if: github.event.release.prelease == false
run: yarn npm publish --tag latest
working-directory: package
working-directory: packages/react-clock
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish with next tag
if: github.event.release.prelease == true
run: yarn npm publish --tag next
working-directory: package
working-directory: packages/react-clock
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# react-clock monorepo

Looking for the react-clock documentation? It can now be found [here](package/README.md).
Looking for the react-clock documentation? It can now be found [here](packages/react-clock/README.md).
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "react-clock monorepo",
"type": "module",
"workspaces": [
"package",
"packages/*",
"test"
],
"scripts": {
Expand Down
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/package.json → packages/react-clock/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"repository": {
"type": "git",
"url": "https://github.com/wojtekmaj/react-clock.git",
"directory": "package"
"directory": "packages/react-clock"
},
"funding": "https://github.com/wojtekmaj/react-clock?sponsor=1"
}
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 test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@wojtekmaj/date-utils": "^1.5.0",
"@wojtekmaj/react-hooks": "^1.16.2",
"react": "^18.2.0",
"react-clock": "workspace:package",
"react-clock": "workspace:packages/react-clock",
"react-dom": "^18.2.0"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5086,9 +5086,9 @@ __metadata:
languageName: unknown
linkType: soft

"react-clock@workspace:package":
"react-clock@workspace:packages/react-clock":
version: 0.0.0-use.local
resolution: "react-clock@workspace:package"
resolution: "react-clock@workspace:packages/react-clock"
dependencies:
"@testing-library/jest-dom": ^5.15.0
"@testing-library/react": ^14.0.0
Expand Down Expand Up @@ -5848,7 +5848,7 @@ __metadata:
eslint-config-wojtekmaj: ^0.9.0
prettier: ^2.7.0
react: ^18.2.0
react-clock: "workspace:package"
react-clock: "workspace:packages/react-clock"
react-dom: ^18.2.0
typescript: ^5.0.0
vite: ^4.0.0
Expand Down

0 comments on commit f642af2

Please sign in to comment.