Skip to content

Commit fb78742

Browse files
authored
Merge pull request #31 from fastly/allow-package-upgrades
Allow @fastly/compute-js-static-publish to be upgraded after app is scaffolded.
2 parents 0060954 + 5b5dbdd commit fb78742

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/cli/commands/init-app.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,12 @@ export function initApp(commandLineValues: CommandLineOptions) {
317317
computeJsStaticPublisherVersion = '^4.0.0';
318318
}
319319

320+
if (!computeJsStaticPublisherVersion.startsWith('^') &&
321+
!computeJsStaticPublisherVersion.startsWith('file:')
322+
) {
323+
computeJsStaticPublisherVersion = '^' + computeJsStaticPublisherVersion;
324+
}
325+
320326
const commandLineAppOptions = processCommandLineArgs(commandLineValues);
321327

322328
type PackageJsonAppOptions = Pick<AppOptions, 'author' | 'name' | 'description'>;

0 commit comments

Comments
 (0)