feat(cli): update new project template
This commit is contained in:
parent
15bc42bcee
commit
9aac6267b7
2 changed files with 5 additions and 3 deletions
|
@ -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'
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue