Skip to content

Commit

Permalink
feat: support angular-package-format out of box
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Jun 25, 2022
1 parent 39ab8b1 commit 7e0cd04
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/index.ts
Expand Up @@ -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

Expand Down

0 comments on commit 7e0cd04

Please sign in to comment.