From 9aac6267b72b3ef1a317d7e3a5a84827c6c37850 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Mon, 7 Jun 2021 22:17:19 +0800 Subject: [PATCH] feat(cli): update new project template --- cli/src/new/ci-yml.ts | 2 +- cli/src/new/package.ts | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cli/src/new/ci-yml.ts b/cli/src/new/ci-yml.ts index 7e8e5a5f..aeffe3be 100644 --- a/cli/src/new/ci-yml.ts +++ b/cli/src/new/ci-yml.ts @@ -2,7 +2,7 @@ const OLDEST_LTS_NODE = 10 const LATEST_LTS_NODE = 14 const SUPPORTED_NODE_VERSIONS = [10, 12, 14, 15] -const OS_LINUX = 'ubuntu-latest' +const OS_LINUX = 'ubuntu-18.04' const OS_OSX = 'macos-latest' const OS_WINDOWS = 'windows-latest' diff --git a/cli/src/new/package.ts b/cli/src/new/package.ts index 426c8d4b..8319d022 100644 --- a/cli/src/new/package.ts +++ b/cli/src/new/package.ts @@ -7,14 +7,16 @@ export const createPackageJson = ( ) => { const pkgContent = { name, + version: '0.0.0', napi: { name: binaryName, }, + license: 'MIT', dependencies: { - '@node-rs/helper': '^1.0.0', + '@node-rs/helper': '^1.1.0', }, devDependencies: { - '@napi-rs/cli': '^1.0.0', + '@napi-rs/cli': '^1.1.0', }, engines: { node: '>= 10',