From 7e0cd043e66f1a6ccc89ac57fe7d695228d5a2df Mon Sep 17 00:00:00 2001 From: JounQin Date: Sat, 25 Jun 2022 17:23:18 +0800 Subject: [PATCH] feat: support angular-package-format out of box --- src/index.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 393fa66..af837e1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,7 +40,20 @@ const defaultExtensions = [ '.node', ] -const defaultMainFields = ['types', 'typings', 'module', 'jsnext:main', 'main'] +const defaultMainFields = [ + 'types', + 'typings', + 'module', + 'jsnext:main', + + // https://angular.io/guide/angular-package-format + 'esm2020', + 'es2020', + 'fesm2020', + 'fesm2015', + + 'main', +] export const interfaceVersion = 2