feat(cli): update new project template

This commit is contained in:
LongYinan 2021-06-07 22:17:19 +08:00
parent 15bc42bcee
commit 9aac6267b7
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,7 @@ const OLDEST_LTS_NODE = 10
const LATEST_LTS_NODE = 14 const LATEST_LTS_NODE = 14
const SUPPORTED_NODE_VERSIONS = [10, 12, 14, 15] 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_OSX = 'macos-latest'
const OS_WINDOWS = 'windows-latest' const OS_WINDOWS = 'windows-latest'

View file

@ -7,14 +7,16 @@ export const createPackageJson = (
) => { ) => {
const pkgContent = { const pkgContent = {
name, name,
version: '0.0.0',
napi: { napi: {
name: binaryName, name: binaryName,
}, },
license: 'MIT',
dependencies: { dependencies: {
'@node-rs/helper': '^1.0.0', '@node-rs/helper': '^1.1.0',
}, },
devDependencies: { devDependencies: {
'@napi-rs/cli': '^1.0.0', '@napi-rs/cli': '^1.1.0',
}, },
engines: { engines: {
node: '>= 10', node: '>= 10',