fix(cli): missing main and types field in created package.json

This commit is contained in:
LongYinan 2021-10-01 14:50:57 +08:00
parent 0e8de173a4
commit 860a02a7cb

View file

@ -8,6 +8,8 @@ export const createPackageJson = (
const pkgContent = {
name,
version: '0.0.0',
main: 'index.js',
types: 'index.d.ts',
napi: {
name: binaryName,
},