Skip to content

Commit

Permalink
feat: ✨ monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
Evert De Spiegeleer committed Jan 12, 2024
1 parent c13f51b commit aae8e2c
Show file tree
Hide file tree
Showing 33 changed files with 7,893 additions and 2,660 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,11 @@ jobs:
- name: Configure Git
uses: fregante/setup-git-user@v1

- name: Version the package
- name: Version the packages
id: version
run: |
export VERSION=$(npm version --no-commit-hooks --no-git-tag-version prerelease --preid $(echo "${{ steps.extract_branch.outputs.branch }}" | tr -cs 'a-zA-Z0-9-' '-' | sed 's/-$//'))
yarn workspaces foreach -A -t --no-private exec "npm version $VERSION --no-commit-hooks --no-git-tag-version"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Publish to npm
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:

- name: Version the package
id: version
run: npm version --no-commit-hooks --no-git-tag-version ${{ github.event.inputs.release-type }}
run: |
export VERSION=$(npm version --no-commit-hooks --no-git-tag-version ${{ github.event.inputs.release-type }})
yarn workspaces foreach -A -t --no-private exec "npm version $VERSION --no-commit-hooks --no-git-tag-version"
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Publish to npm
run: |
Expand All @@ -50,5 +53,5 @@ jobs:
- name: Commit and push changes
run: |
git commit -am "chore(version): 📦 ${{ github.event.inputs.release-type }} version bump to ${{ steps.version.outputs.stdout }}"
git commit -am "chore(version): 📦 ${{ github.event.inputs.release-type }} version bump to ${{ steps.version.outputs.version }}"
git push
6 changes: 6 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"recommendations": [
"arcanis.vscode-zipfs",
"dbaeumer.vscode-eslint"
]
}
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"search.exclude": {
"**/.yarn": true,
"**/.pnp.*": true
},
"typescript.enablePromptUseWorkspaceTsdk": true
}
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
8 changes: 6 additions & 2 deletions examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@
"extends": "../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "..",
"paths": {
"@zhttp/core*": ["../src", "../src/main.ts", "../src/*"],
"@zhttp/core*": ["../packages/core/src", "../packages/core/src/main.ts", "../packages/core/src/*"],
}
},
"include": ["*"],
"include": [
"./*.ts",
"../**/*.ts"
],
}
Loading

0 comments on commit aae8e2c

Please sign in to comment.