From f94e85a42da5dcf6ed0ef9eca7650f5cc9d7821c Mon Sep 17 00:00:00 2001 From: Martin Acosta Date: Sat, 6 Jan 2024 12:46:10 -0300 Subject: [PATCH] feat: add packageJSON type keyword --- src/packagers/npm.ts | 2 +- src/packagers/pnpm.ts | 2 +- src/packagers/yarn.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/packagers/npm.ts b/src/packagers/npm.ts index 69e7c31c..ca626a42 100644 --- a/src/packagers/npm.ts +++ b/src/packagers/npm.ts @@ -95,7 +95,7 @@ export class NPM implements Packager { } get copyPackageSectionNames() { - return []; + return ['type']; } get mustCopyModules() { diff --git a/src/packagers/pnpm.ts b/src/packagers/pnpm.ts index 1c822960..df892bba 100644 --- a/src/packagers/pnpm.ts +++ b/src/packagers/pnpm.ts @@ -14,7 +14,7 @@ export class Pnpm implements Packager { } get copyPackageSectionNames() { - return []; + return ['type']; } get mustCopyModules() { diff --git a/src/packagers/yarn.ts b/src/packagers/yarn.ts index 1df808f8..8f23e593 100644 --- a/src/packagers/yarn.ts +++ b/src/packagers/yarn.ts @@ -50,7 +50,7 @@ export class Yarn implements Packager { } get copyPackageSectionNames() { - return ['resolutions']; + return ['resolutions', 'type']; } get mustCopyModules() {