Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump node satisfied version in create-snap #1789

Merged
merged 1 commit into from
Sep 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/create-snap/src/cmds/init/initHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ describe('initialize', () => {
};

await expect(initHandler({ ...getMockArgv() })).rejects.toThrow(
`Init Error: You are using an outdated version of Node (${process.version}). Please update to Node >=16.`,
`Init Error: You are using an outdated version of Node (${process.version}). Please update to Node >=18.6.0.`,
);
});

Expand Down
2 changes: 1 addition & 1 deletion packages/create-snap/src/cmds/init/initHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
yarnInstall,
} from './initUtils';

const SATISFIED_VERSION = '>=16' as SemVerRange;
const SATISFIED_VERSION = '>=18.6.0' as SemVerRange;

/**
* Creates a new snap package, based on one of the provided templates. This
Expand Down