From 860a02a7cb575d8a33c2007ad38eda762e12ba79 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Fri, 1 Oct 2021 14:50:57 +0800 Subject: [PATCH] fix(cli): missing main and types field in created package.json --- cli/src/new/package.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/src/new/package.ts b/cli/src/new/package.ts index 9401eafd..d283529d 100644 --- a/cli/src/new/package.ts +++ b/cli/src/new/package.ts @@ -8,6 +8,8 @@ export const createPackageJson = ( const pkgContent = { name, version: '0.0.0', + main: 'index.js', + types: 'index.d.ts', napi: { name: binaryName, },