chore: include central readme/licence when publishing individual packages (#18421)

This commit is contained in:
Daniel Roe 2023-01-23 16:53:59 +00:00 committed by GitHub
parent 5518e26455
commit 3c715ac729
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 56 additions and 31 deletions

2
.gitignore vendored
View File

@ -3,6 +3,8 @@ node_modules
jspm_packages jspm_packages
package-lock.json package-lock.json
packages/*/README.md
packages/*/LICENSE
*/**/yarn.lock */**/yarn.lock
/.yarn /.yarn

View File

@ -7,6 +7,54 @@ description: Some specific points about contributions to the nuxt/nuxt repositor
Once you've read the [general contribution guide](/docs/community/contribution), here are some specific points to make about contributions to the `nuxt/nuxt` repository. Once you've read the [general contribution guide](/docs/community/contribution), here are some specific points to make about contributions to the `nuxt/nuxt` repository.
## Monorepo Guide
### `packages/kit`
> Toolkit for authoring Nuxt Modules
- Published as: `@nuxt/kit`
- [Learn more about this package](/docs/guide/going-further/kit).
### `packages/nuxi`
> Nuxt Command Line Interface
- Published as: `nuxi`
- [Learn more about this package](/docs/api/commands/add).
### `packages/nuxt`
> The core of Nuxt 3
- Published as: `nuxt`
### `packages/schema`
> Cross-version Nuxt typedefs and defaults
- Published as: `@nuxt/schema`
### `packages/test-utils`
> Test utilities for Nuxt.
- Published as: `@nuxt/test-utils`
### `packages/vite`
> The [Vite](https://vitejs.dev) bundler for Nuxt 3.
- Published as: `@nuxt/vite-builder`
- [Learn more about this package](/docs/api/configuration/nuxt-config#vite).
### `packages/webpack`
> The [webpack](https://webpack.js.org) bundler for Nuxt 3
- Published as: `@nuxt/webpack-builder`
- [Learn more about this package](/docs/api/configuration/nuxt-config#webpack-1).
## Using the Playground ## Using the Playground
While working on a PR, you will likely want to check if your changes are working correctly. While working on a PR, you will likely want to check if your changes are working correctly.

View File

@ -1,5 +0,0 @@
# Nuxt Kit
> Toolkit for authoring Nuxt Modules
Learn more about this package: <https://nuxt.com/docs/guide/going-further/kit>

View File

@ -1,5 +0,0 @@
# Nuxi
> Nuxt Command Line Interface
Learn more about this package: <https://nuxt.com/docs/api/commands/add>

View File

@ -1,5 +0,0 @@
# Nuxt 3
> The core of Nuxt 3
Learn more about this package: <https://nuxt.com>

View File

@ -1,3 +0,0 @@
# Nuxt Schema
> Cross-version Nuxt typedefs and defaults

View File

@ -1,3 +0,0 @@
# Nuxt Test Utils
Test utilities for Nuxt.

View File

@ -1,5 +0,0 @@
# Nuxt Vite Builder
> [Vite](https://vitejs.dev) bundler for Nuxt 3.
Learn more about this package: <https://nuxt.com/docs/api/configuration/nuxt-config#vite>

View File

@ -1,5 +0,0 @@
# Nuxt Webpack Builder
> The [Webpack](https://webpack.js.org) bundler for Nuxt 3
Learn more about this package: <https://nuxt.com/docs/api/configuration/nuxt-config#webpack-1>

View File

@ -20,6 +20,8 @@ fi
for p in packages/* ; do for p in packages/* ; do
pushd $p pushd $p
echo "Publishing $p" echo "Publishing $p"
cp ../../LICENSE .
cp ../../README.md .
pnpm publish --access public --no-git-checks pnpm publish --access public --no-git-checks
popd popd
done done

View File

@ -16,6 +16,8 @@ for PKG in packages/* ; do
TAG="rc" TAG="rc"
fi fi
echo "⚡ Publishing $PKG with tag $TAG" echo "⚡ Publishing $PKG with tag $TAG"
cp ../../LICENSE .
cp ../../README.md .
pnpm publish --access public --no-git-checks --tag $TAG pnpm publish --access public --no-git-checks --tag $TAG
popd > /dev/null popd > /dev/null
done done

View File

@ -13,6 +13,8 @@ for PKG in packages/* ; do
pushd $PKG pushd $PKG
TAG="latest" TAG="latest"
echo "⚡ Publishing $PKG with tag $TAG" echo "⚡ Publishing $PKG with tag $TAG"
cp ../../LICENSE .
cp ../../README.md .
pnpm publish --access public --no-git-checks --tag $TAG pnpm publish --access public --no-git-checks --tag $TAG
popd > /dev/null popd > /dev/null
done done