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 = { const pkgContent = {
name, name,
version: '0.0.0', version: '0.0.0',
main: 'index.js',
types: 'index.d.ts',
napi: { napi: {
name: binaryName, name: binaryName,
}, },