Skip to content

Commit

Permalink
fix: fixed found bugs, change marker ending
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed Sep 22, 2024
1 parent 4bb0dcc commit 3981f31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/packem/__tests__/intigration/generate-license.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export const data = { dep, devDep };`,
`${temporaryDirectoryPath}/LICENSE.md`,
`The MIT License (MIT) root
<!-- DEPENDENCIES -->
<!-- DEPENDENCIES -->
<!-- /DEPENDENCIES -->
<!-- TYPE_DEPENDENCIES -->
<!-- /TYPE_DEPENDENCIES -->`,
Expand Down Expand Up @@ -163,7 +163,7 @@ The published artifact additionally contains code with the following licenses:
> The MIT License (MIT) dev-dep
<!-- DEPENDENCIES -->
<!-- /DEPENDENCIES -->
<!-- TYPE_DEPENDENCIES -->
<!-- /TYPE_DEPENDENCIES -->`);
Expand All @@ -188,7 +188,7 @@ The published artifact additionally contains code with the following licenses:
> The MIT License (MIT) dev-dep
<!-- DEPENDENCIES -->
<!-- /DEPENDENCIES -->
<!-- TYPE_DEPENDENCIES -->
<!-- /TYPE_DEPENDENCIES -->`);
Expand Down Expand Up @@ -216,7 +216,7 @@ The published artifact additionally contains code with the following licenses:
> The MIT License (MIT) dev-dep
<!-- DEPENDENCIES -->
<!-- /DEPENDENCIES -->
<!-- TYPE_DEPENDENCIES -->
<!-- /TYPE_DEPENDENCIES -->`,
Expand All @@ -233,7 +233,7 @@ export const data = { dep, devDep };`,
`${temporaryDirectoryPath}/LICENSE.md`,
`The MIT License (MIT) root
<!-- DEPENDENCIES -->
<!-- DEPENDENCIES -->
<!-- /DEPENDENCIES -->
<!-- TYPE_DEPENDENCIES -->
<!-- /TYPE_DEPENDENCIES -->`,
Expand Down Expand Up @@ -290,7 +290,7 @@ The published artifact additionally contains code with the following licenses:
>
> > The MIT License (MIT) dev-dep
<!-- DEPENDENCIES -->
<!-- /DEPENDENCIES -->
<!-- TYPE_DEPENDENCIES -->
<!-- /TYPE_DEPENDENCIES -->`);
Expand Down Expand Up @@ -324,7 +324,7 @@ The published artifact additionally contains code with the following licenses:
>
> > The MIT License (MIT) dev-dep
<!-- DEPENDENCIES -->
<!-- /DEPENDENCIES -->
<!-- TYPE_DEPENDENCIES -->
<!-- /TYPE_DEPENDENCIES -->`);
Expand Down
2 changes: 2 additions & 0 deletions packages/packem/src/rollup/plugins/license.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export const license = ({
.replaceAll(/\r\n|\r/g, "\n")
.replaceAll(`<!-- ${marker} -->`, "")
.replaceAll(dtsMarker ? `<!-- ${dtsMarker} -->` : "", "")
.replaceAll(`<!-- /${marker} -->`, "")
.replaceAll(dtsMarker ? `<!-- /${dtsMarker} -->` : "", "")
.trim()
.split("\n")
.map((line) => {
Expand Down

0 comments on commit 3981f31

Please sign in to comment.