From 3981f3182c227aa6f43633426bee400323d4a76f Mon Sep 17 00:00:00 2001 From: prisis Date: Sun, 22 Sep 2024 23:56:17 +0200 Subject: [PATCH] fix: fixed found bugs, change marker ending --- .../__tests__/intigration/generate-license.test.ts | 14 +++++++------- packages/packem/src/rollup/plugins/license.ts | 2 ++ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/packages/packem/__tests__/intigration/generate-license.test.ts b/packages/packem/__tests__/intigration/generate-license.test.ts index 2e1f19cfa..ea35c8eae 100644 --- a/packages/packem/__tests__/intigration/generate-license.test.ts +++ b/packages/packem/__tests__/intigration/generate-license.test.ts @@ -115,7 +115,7 @@ export const data = { dep, devDep };`, `${temporaryDirectoryPath}/LICENSE.md`, `The MIT License (MIT) root - + `, @@ -163,7 +163,7 @@ The published artifact additionally contains code with the following licenses: > The MIT License (MIT) dev-dep - + `); @@ -188,7 +188,7 @@ The published artifact additionally contains code with the following licenses: > The MIT License (MIT) dev-dep - + `); @@ -216,7 +216,7 @@ The published artifact additionally contains code with the following licenses: > The MIT License (MIT) dev-dep - + `, @@ -233,7 +233,7 @@ export const data = { dep, devDep };`, `${temporaryDirectoryPath}/LICENSE.md`, `The MIT License (MIT) root - + `, @@ -290,7 +290,7 @@ The published artifact additionally contains code with the following licenses: > > > The MIT License (MIT) dev-dep - + `); @@ -324,7 +324,7 @@ The published artifact additionally contains code with the following licenses: > > > The MIT License (MIT) dev-dep - + `); diff --git a/packages/packem/src/rollup/plugins/license.ts b/packages/packem/src/rollup/plugins/license.ts index a444f7a02..6dca573a5 100644 --- a/packages/packem/src/rollup/plugins/license.ts +++ b/packages/packem/src/rollup/plugins/license.ts @@ -95,6 +95,8 @@ export const license = ({ .replaceAll(/\r\n|\r/g, "\n") .replaceAll(``, "") .replaceAll(dtsMarker ? `` : "", "") + .replaceAll(``, "") + .replaceAll(dtsMarker ? `` : "", "") .trim() .split("\n") .map((line) => {