Skip to content

Commit 9eba0fb

Browse files
committed
Don't copy the LICENSE, pnpm publish will do it
1 parent da0de73 commit 9eba0fb

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dist-ssr
1414
coverage
1515
*.local
1616
packages/docs/.vitepress/cache
17-
packages/create-vue-lib/LICENSE
1817
packages/create-vue-lib/README.md
1918

2019
# Editor directories and files

packages/create-vue-lib/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
"typescript": "^5.7.3"
3838
},
3939
"scripts": {
40-
"clean": "rimraf dist LICENSE README.md",
40+
"clean": "rimraf dist README.md",
4141
"type-check": "tsc",
42-
"build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
42+
"build:copy": "copyfiles -f ../../README.md .",
4343
"build:templates": "copyfiles -u 1 -a \"src/template/**\" dist",
4444
"build:ts": "tsup src/index.ts --format cjs --target node18",
4545
"build": "run-s clean build:copy build:templates build:ts",

packages/create-vue-lib/src/template/base/config/.gitignore.ejs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dist-ssr
1414
coverage
1515
*.local
1616
packages/docs/.vitepress/cache
17-
packages/<%- config.mainPackageDirName %>/LICENSE
1817
packages/<%- config.mainPackageDirName %>/README.md
1918

2019
/cypress/videos/

packages/create-vue-lib/src/template/base/config/packages/@projectName@/package.json.ejs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,13 @@
6363
},
6464
"scripts": {
6565
"clean:dist": "rimraf dist",
66-
"clean": "rimraf dist coverage LICENSE README.md",
66+
"clean": "rimraf dist coverage README.md",
6767
<%_ if (config.includeVitest) { _%>
6868
"test:unit": "vitest --environment jsdom",
6969
"coverage": "vitest run --coverage --environment jsdom",
7070
<%_ } _%>
7171
"type-check": "vue-tsc --build",
72-
"build:copy": "copyfiles -f ../../LICENSE ../../README.md .",
72+
"build:copy": "copyfiles -f ../../README.md .",
7373
"build:dev": "cross-env NODE_ENV=development vite build --mode development",
7474
"build:neutral": "vite build --mode neutral",
7575
"build:prod": "vite build --mode production",

packages/docs/src/next-steps.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ The root `README.md` is primarily intended for readers on GitHub. It will be cop
6868

6969
## Add a `LICENSE`
7070

71-
You should populate the LICENSE file in the root directory of your project.
71+
You should populate the `LICENSE` file in the root directory of your project.
7272

73-
The root `LICENSE` will be copied to the main package directory as part of the build, so that it can be included in the published package. If you don't want that, you should modify `package.json` and `.gitignore`.
73+
[`pnpm publish`](https://pnpm.io/cli/publish) will automatically include the `LICENSE` file from the workspace root, so there's no need to add a separate `LICENSE` in the main package directory unless you want it to differ from the root `LICENSE`.
7474

7575
## Update `package.json`
7676

0 commit comments

Comments
 (0)