Skip to content

Commit 72654a6

Browse files
authored
chore: Update test package license. (#651)
Updates the license of the test package.
1 parent a40472c commit 72654a6

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

packages/test/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
*.d.ts
22
*.d.cts
3+
/LICENSE
34
LICENSE.md
45
*.cjs
56
*.mjs
67
browser/
7-
dist/
8+
dist/

packages/test/build.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ await patchChaiTypeReference();
222222
await patchMockerHoistedModule();
223223
const pluginExports = await createPluginExports();
224224
await mergePackageJson(pluginExports);
225+
await syncLicenseFromRoot();
225226
await validateExternalDeps();
226227

227228
async function mergePackageJson(pluginExports: Array<{ exportPath: string; shimFile: string }>) {
@@ -401,6 +402,12 @@ async function mergePackageJson(pluginExports: Array<{ exportPath: string; shimF
401402
await writeFile(destPackageJsonPath, code);
402403
}
403404

405+
async function syncLicenseFromRoot() {
406+
const rootLicensePath = join(projectDir, '..', '..', 'LICENSE');
407+
const packageLicensePath = join(projectDir, 'LICENSE');
408+
await copyFile(rootLicensePath, packageLicensePath);
409+
}
410+
404411
async function bundleVitest() {
405412
const vitestDestDir = projectDir;
406413

packages/test/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "@voidzero-dev/vite-plus-test",
33
"version": "0.0.0",
4+
"license": "MIT",
45
"files": [
56
"*.cjs",
67
"*.cts",

0 commit comments

Comments
 (0)