Skip to content

Commit

Permalink
feat: add packageJSON type keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchoz49 committed Jan 6, 2024
1 parent 6994ff4 commit f94e85a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/packagers/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export class NPM implements Packager {
}

get copyPackageSectionNames() {
return [];
return ['type'];
}

get mustCopyModules() {
Expand Down
2 changes: 1 addition & 1 deletion src/packagers/pnpm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class Pnpm implements Packager {
}

get copyPackageSectionNames() {
return [];
return ['type'];
}

get mustCopyModules() {
Expand Down
2 changes: 1 addition & 1 deletion src/packagers/yarn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Yarn implements Packager {
}

get copyPackageSectionNames() {
return ['resolutions'];
return ['resolutions', 'type'];
}

get mustCopyModules() {
Expand Down

0 comments on commit f94e85a

Please sign in to comment.