Skip to content

Commit

Permalink
Merge pull request #1 from amandaguthrie/changeset-config
Browse files Browse the repository at this point in the history
Update: Changesets, GitHub, NPM
  • Loading branch information
amandaguthrie committed Feb 11, 2024
2 parents 7ca7755 + 23f9035 commit bf678cf
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 21 deletions.
5 changes: 4 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": [],
"snapshot": {
"useCalculatedVersion": true
}
}
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/1-bug.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ body:
Thanks for taking the time to create an issue.
- type: dropdown
attributes:
id: package
label: Package
description: Choose the package that you are experiencing an issue with.
options:
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/2-feature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ body:
Thanks for taking the time to create a feature request.
- type: dropdown
attributes:
id: package
label: Package
description: Choose the package that you would like to request a feature for.
options:
Expand Down
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/3-documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ body:
Thanks for taking the time to create a documentation request.
- type: dropdown
attributes:
id: package
label: Package
description: Choose the package that you would like to request documentation for.
options:
Expand Down
4 changes: 2 additions & 2 deletions .github/composite-actions/install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ description: 'Set Up Node.js and Run Install'
runs:
using: composite
steps:
- uses: pnpm/action-setup@v2.4.0
- uses: pnpm/action-setup@v3
with:
version: 8

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install
uses: ./.github/composite-actions/install
Expand All @@ -31,7 +31,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install
uses: ./.github/composite-actions/install
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install
uses: ./.github/composite-actions/install
Expand All @@ -59,7 +59,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install
uses: ./.github/composite-actions/install
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,9 @@
"tsx": "^4.7.1",
"typescript": "^5.3.3"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"engines": {
"node": ">=18.0.0 <21",
"pnpm": "^8.0.0"
}
}
1 change: 0 additions & 1 deletion packages/_template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"dev": "pnpm build-fast --watch",
"test": "node --import tsx tests/test.mts"
},
"packageManager": "[email protected]",
"publishConfig": {
"access": "restricted"
}
Expand Down
8 changes: 2 additions & 6 deletions packages/_template/tests/test.mts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@ const testStream = run({ files: testFiles });

// Failed tests do not change the exit code, so we configure it here.
testStream.on('test:fail', () => {
process.exitCode = 1;
},
);
process.exitCode = 1;
});

testStream.pipe(reporter).pipe(process.stdout);



4 changes: 2 additions & 2 deletions packages/_template/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfig.build.json",
"include": ["src"],
"compilerOptions": {
"baseUrl": ".",
"baseUrl": "."
},
"module": "ES2023",
"module": "ES2023"
}

0 comments on commit bf678cf

Please sign in to comment.