From 134194c0509cc2d59b4edee61a3f3379fdd7050c Mon Sep 17 00:00:00 2001 From: cpojer Date: Fri, 27 Feb 2026 11:45:51 +0900 Subject: [PATCH] chore: Switch to MIT License. --- Cargo.toml | 2 +- LICENSE | 62 +++++++++++++------------------------- package.json | 2 +- packages/cli/.gitignore | 1 + packages/cli/build.ts | 7 +++++ packages/cli/package.json | 1 + packages/core/.gitignore | 1 + packages/core/build.ts | 7 +++++ packages/core/package.json | 1 + pnpm-lock.yaml | 1 + 10 files changed, 42 insertions(+), 43 deletions(-) create mode 100644 packages/core/.gitignore diff --git a/Cargo.toml b/Cargo.toml index 6d86ab6e28..3704f5ed2d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ ignored = [ authors = ["Vite+ Authors"] edition = "2024" homepage = "https://github.com/voidzero-dev/vite-plus" -license = "BUSL-1.1" +license = "MIT" repository = "https://github.com/voidzero-dev/vite-plus" rust-version = "1.92.0" diff --git a/LICENSE b/LICENSE index 016468e6e1..cf067b10e0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,41 +1,21 @@ -# Business Source License 1.1 - -License text copyright (c) 2020 MariaDB Corporation Ab, All Rights Reserved. - -“Business Source License” is a trademark of MariaDB Corporation Ab. - ---- - -Licensor: VoidZero Inc. - -Licensed Work: The Licensed Work is (c) 2025 VoidZero Inc. - -Additional Use Grant: TBA - -Change Date: Four years from the date the Licensed Work is published - -Change License: TBA - ---- - -Business Source License 1.1 - -License text copyright © 2017 MariaDB Corporation Ab, All Rights Reserved. "Business Source License" is a trademark of MariaDB Corporation Ab. - -Terms - -The Licensor hereby grants you the right to copy, modify, create derivative works, redistribute, and make non-production use of the Licensed Work. The Licensor may make an Additional Use Grant, above, permitting limited production use. - -Effective on the Change Date, or the fourth anniversary of the first publicly available distribution of a specific version of the Licensed Work under this License, whichever comes first, the Licensor hereby grants you rights under the terms of the Change License, and the rights granted in the paragraph above terminate. - -If your use of the Licensed Work does not comply with the requirements currently in effect as described in this License, you must purchase a commercial license from the Licensor, its affiliated entities, or authorized resellers, or you must refrain from using the Licensed Work. - -All copies of the original and modified Licensed Work, and derivative works of the Licensed Work, are subject to this License. This License applies separately for each version of the Licensed Work and the Change Date may vary for each version of the Licensed Work released by Licensor. - -You must conspicuously display this License on each original or modified copy of the Licensed Work. If you receive the Licensed Work in original or modified form from a third party, the terms and conditions set forth in this License apply to your use of that work. - -Any use of the Licensed Work in violation of this License will automatically terminate your rights under this License for the current and all other versions of the Licensed Work. - -This License does not grant you any right in any trademark or logo of Licensor or its affiliates (provided that you may use a trademark or logo of Licensor as expressly required by this License). - -TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND TITLE. +MIT License + +Copyright (c) 2026-present, VoidZero Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/package.json b/package.json index add962a7d3..e78eadf773 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vite-plus-monorepo", "private": true, - "license": "BUSL-1.1", + "license": "MIT", "type": "module", "scripts": { "build": "pnpm -F @voidzero-dev/* -F vite-plus build", diff --git a/packages/cli/.gitignore b/packages/cli/.gitignore index d4d6195c4f..8bc08a48cb 100644 --- a/packages/cli/.gitignore +++ b/packages/cli/.gitignore @@ -1,2 +1,3 @@ /npm /artifacts +/LICENSE diff --git a/packages/cli/build.ts b/packages/cli/build.ts index d349748453..33ce787167 100644 --- a/packages/cli/build.ts +++ b/packages/cli/build.ts @@ -67,6 +67,7 @@ if (!skipTs) { await syncTestPackageExports(); } await syncReadmeFromRoot(); +await syncLicenseFromRoot(); async function buildNapiBinding() { const buildCommand = createBuildCommand(napiArgs); @@ -424,6 +425,12 @@ async function syncReadmeFromRoot() { } } +async function syncLicenseFromRoot() { + const rootLicensePath = join(projectDir, '..', '..', 'LICENSE'); + const packageLicensePath = join(projectDir, 'LICENSE'); + await copyFile(rootLicensePath, packageLicensePath); +} + function splitReadme(content: string, label: string) { const match = /^---\s*$/m.exec(content); if (!match || match.index === undefined) { diff --git a/packages/cli/package.json b/packages/cli/package.json index dff756ec8c..1d5716c715 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,7 @@ { "name": "vite-plus", "version": "0.0.0", + "license": "MIT", "bin": { "oxfmt": "./bin/oxfmt", "oxlint": "./bin/oxlint", diff --git a/packages/core/.gitignore b/packages/core/.gitignore new file mode 100644 index 0000000000..9dc7e3d4a9 --- /dev/null +++ b/packages/core/.gitignore @@ -0,0 +1 @@ +/LICENSE diff --git a/packages/core/build.ts b/packages/core/build.ts index 7b4bad39d6..cdb21e3bba 100644 --- a/packages/core/build.ts +++ b/packages/core/build.ts @@ -51,6 +51,7 @@ await buildVite(); await bundleTsdown(); await bundleVitepress(); await mergePackageJson(); +await syncLicenseFromRoot(); async function buildVite() { const newViteRolldownConfig = viteRolldownConfig.map((config) => { @@ -473,3 +474,9 @@ async function mergePackageJson() { } await writeFile(destPkgPath, code); } + +async function syncLicenseFromRoot() { + const rootLicensePath = join(projectDir, '..', '..', 'LICENSE'); + const packageLicensePath = join(projectDir, 'LICENSE'); + await copyFile(rootLicensePath, packageLicensePath); +} diff --git a/packages/core/package.json b/packages/core/package.json index 8b4b787eec..3b686adf7c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,7 @@ { "name": "@voidzero-dev/vite-plus-core", "version": "0.0.0", + "license": "MIT", "files": [ "dist" ], diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 055b951002..afba275b83 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5486,6 +5486,7 @@ packages: basic-ftp@5.0.5: resolution: {integrity: sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==} engines: {node: '>=10.0.0'} + deprecated: Security vulnerability fixed in 5.2.0, please upgrade before-after-hook@4.0.0: resolution: {integrity: sha512-q6tR3RPqIB1pMiTRMFcZwuG5T8vwp+vUvEG0vuI6B+Rikh5BfPp2fQ82c925FOs+b0lcFQ8CFrL+KbilfZFhOQ==}