Skip to content

Commit

Permalink
feat: update node.js versions (#166)
Browse files Browse the repository at this point in the history
Automated changes by [update-node-versions](https://github.com/hongaar/update-node-versions) GitHub action

BREAKING CHANGE: This updates the supported node.js versions
  • Loading branch information
hongaar authored May 9, 2023
1 parent 1dd1f32 commit 109af99
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
node-version:
- 16
- 18
- 20
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
13 changes: 7 additions & 6 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
### TODOs

| Filename | line # | TODO |
| :------------------------------------------------------------------------- | :----: | :--------------------------------- |
| [packages/core/src/license.ts](packages/core/src/license.ts#L43) | 43 | Contents is not perfect yet, e.g.: |
| [packages/core/src/yarnrc.ts](packages/core/src/yarnrc.ts#L23) | 23 | etc, fix later |
| [packages/plugins/src/jest/jest.ts](packages/plugins/src/jest/jest.ts#L31) | 31 | install jest without ts-jest |
| [packages/plugins/src/xv/xv.ts](packages/plugins/src/xv/xv.ts#L16) | 16 | install xv without ts-node |
| Filename | line # | TODO |
| :------------------------------------------------------------------------- | :----: | :--------------------------------------------------------------- |
| [packages/cli/test/add.test.ts](packages/cli/test/add.test.ts#L62) | 62 | remove when https://github.com/nodejs/node/issues/47614 resolves |
| [packages/core/src/license.ts](packages/core/src/license.ts#L43) | 43 | Contents is not perfect yet, e.g.: |
| [packages/core/src/yarnrc.ts](packages/core/src/yarnrc.ts#L23) | 23 | etc, fix later |
| [packages/plugins/src/jest/jest.ts](packages/plugins/src/jest/jest.ts#L31) | 31 | install jest without ts-jest |
| [packages/plugins/src/xv/xv.ts](packages/plugins/src/xv/xv.ts#L16) | 16 | install xv without ts-node |
16 changes: 7 additions & 9 deletions packages/cli/test/add.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ beforeEach(() => {
tempDir = temporaryDirectory();
});

it("should only run wihtin monorepos", async () => {
it("should only run within monorepos", async () => {
await assert.rejects(cli.run(`add --cwd ${tempDir} foo`), {
name: "Error",
message: "Execute this command from within a monorepo",
Expand All @@ -45,8 +45,6 @@ it("needs a workspace configuration", async () => {
});

it("should add a workspace", async () => {
const tempDir = temporaryDirectory();

await createDirectory({ directory: `${tempDir}/.git` });
await writePackage({
directory: tempDir,
Expand All @@ -59,12 +57,12 @@ it("should add a workspace", async () => {
await cli.run(`add --cwd ${tempDir} foo`);
});

it(
"should not confuse templates and workspace names",
{ only: true },
async () => {
const tempDir = temporaryDirectory();
it("should not confuse templates and workspace names", async () => {
/**
* @todo: remove when https://github.com/nodejs/node/issues/47614 resolves
*/

if (!process.versions.node.startsWith("20.")) {
await createDirectory({ directory: `${tempDir}/.git` });
await writePackage({
directory: tempDir,
Expand All @@ -77,4 +75,4 @@ it(
await cli.run(`add --cwd ${tempDir} --template bar foo`);
assert(await isDirectory({ directory: `${tempDir}/packages/foo` }));
}
);
});

0 comments on commit 109af99

Please sign in to comment.