Skip to content

Commit 2c14947

Browse files
committed
feat: switch type to 'fnm' instead
1 parent d268724 commit 2c14947

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/resources/(resources)/javascript/fast-node-manager.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The fast-node-manager resource installs [fnm](https://github.com/Schniz/fnm) —
1717
```json title="codify.json"
1818
[
1919
{
20-
"type": "fast-node-manager",
20+
"type": "fnm",
2121
"nodeVersions": ["20", "18"],
2222
"defaultVersion": "20"
2323
}
@@ -34,7 +34,7 @@ The fast-node-manager resource installs [fnm](https://github.com/Schniz/fnm) —
3434
```json title="codify.json"
3535
[
3636
{
37-
"type": "fast-node-manager",
37+
"type": "fnm",
3838
"nodeVersions": ["lts"],
3939
"defaultVersion": "lts"
4040
}

src/resources/javascript/fast-node-manager/fast-node-manager.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const exampleLts: ExampleConfig = {
3131
title: 'Install Node.js LTS via fnm',
3232
description: 'Install fnm and set the latest LTS release as the global Node.js version.',
3333
configs: [{
34-
type: 'fast-node-manager',
34+
type: 'fnm',
3535
nodeVersions: ['lts'],
3636
defaultVersion: 'lts',
3737
}],
@@ -41,7 +41,7 @@ const exampleMultiVersion: ExampleConfig = {
4141
title: 'Install multiple Node.js versions via fnm',
4242
description: 'Install fnm with multiple Node.js versions side by side, using Node.js 22 as the global default.',
4343
configs: [{
44-
type: 'fast-node-manager',
44+
type: 'fnm',
4545
nodeVersions: ['18', '20', '22'],
4646
defaultVersion: '22',
4747
}],
@@ -50,7 +50,7 @@ const exampleMultiVersion: ExampleConfig = {
5050
export class FnmResource extends Resource<FnmConfig> {
5151
getSettings(): ResourceSettings<FnmConfig> {
5252
return {
53-
id: 'fast-node-manager',
53+
id: 'fnm',
5454
operatingSystems: [OS.Darwin, OS.Linux],
5555
schema,
5656
defaultConfig,

test/node/fast-node-manager/fast-node-manager.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('fast-node-manager tests', () => {
99
it('Can install fnm and node', { timeout: 500000 }, async () => {
1010
await PluginTester.fullTest(pluginPath, [
1111
{
12-
type: 'fast-node-manager',
12+
type: 'fnm',
1313
defaultVersion: '20',
1414
nodeVersions: ['20', '18'],
1515
},
@@ -24,7 +24,7 @@ describe('fast-node-manager tests', () => {
2424
},
2525
testModify: {
2626
modifiedConfigs: [{
27-
type: 'fast-node-manager',
27+
type: 'fnm',
2828
defaultVersion: '22',
2929
nodeVersions: ['22'],
3030
}],

0 commit comments

Comments
 (0)