UNPKG

@bscotch/stitch

Version:

Stitch: The GameMaker Studio 2 Asset Pipeline Development Kit.

23 lines 1.02 kB
#!/usr/bin/env node import { undent } from '@bscotch/utility'; import { program as cli } from 'commander'; import { addDebugOptions } from './lib/addDebugOption.js'; import options from './lib/cli-options.js'; import version from './lib/version.js'; cli .description(undent ` Set the project version in all options files. (Note that the PS4 and Switch options files do not include the version and must be set outside of GameMaker).`) .requiredOption('--project-version <version>', undent ` Can use one of: + "0.0.0.0" syntax (exactly as GameMaker stores versions) + "0.0.0" syntax (semver without prereleases -- the 4th value will always be 0) + "0.0.0-rc.0" syntax (the 4th number will be the RC number) The four numbers will appear in all cases as the string "major.minor.patch.candidate" `) .option(...options.targetProject) .option(...options.force); addDebugOptions(cli).parse(process.argv); await version(cli.opts()); //# sourceMappingURL=stitch-set-version.js.map