Files
ansiblings/packages/nopy-cubes-core/cubes/runtime/nodevm/manifest.mjs
T

20 lines
723 B
JavaScript
Raw Normal View History

2026-07-29 13:07:34 +02:00
import { Manifest } from '@bitsquare/nopy-cubes';
2026-07-27 13:09:00 +02:00
import { z } from 'zod';
2026-07-28 12:18:10 +02:00
export default Manifest({
2026-07-27 13:09:00 +02:00
id: 'runtime:nodevm',
name: 'Install nvm and nodejs with global packages',
dependencies: () => [],
schema: z.object({
VERSION: z
.nullable(z.string())
.describe('Node.js version to install. It is recommended to use semver notation')
.default('v22.20.0'),
USER: z.string().describe('Username for which to install nodejs').default('vagrant'),
ALIAS: z.string().describe('The alias for this node version').default('nodelts'),
GLOBAL_PACKAGES: z
.string()
.describe('Space-separated list of global npm packages to install')
.default('npm-check-updates'),
}),
});