From 9c5675082d421c7c8b752fb401ba3d036dbc9113 Mon Sep 17 00:00:00 2001 From: h7ml Date: Tue, 18 Jun 2024 07:44:38 +0800 Subject: [PATCH] chore(publish-config): make all packages public Remove the `private` key or set it to `false` in the `package.json` of multiple examples and the docs package. Additionally, add the `publishConfig` with `access: public` to explicitly declare these packages as public on npm. --- examples/amis-editor-react/package.json | 5 +++-- examples/amis-editor-webpack/package.json | 5 +++-- examples/vue-amis-editor-webpack/package.json | 5 +++-- examples/vue-editor2.7/package.json | 5 +++-- examples/vue2.7/package.json | 5 +++-- packages/docs/package.json | 6 +++++- 6 files changed, 20 insertions(+), 11 deletions(-) diff --git a/examples/amis-editor-react/package.json b/examples/amis-editor-react/package.json index 53ded69..7a71a6b 100644 --- a/examples/amis-editor-react/package.json +++ b/examples/amis-editor-react/package.json @@ -1,6 +1,6 @@ { "name": "@amis-adapter/amis-editor-react", - "private": true, + "private": false, "version": "0.0.1", "type": "module", "homepage": "https://amis-vite-react.h7ml.cn", @@ -49,7 +49,8 @@ } ], "publishConfig": { - "registry": "https://registry.npmjs.org" + "registry": "https://registry.npmjs.org", + "access": "public" }, "repository": { "type": "git", diff --git a/examples/amis-editor-webpack/package.json b/examples/amis-editor-webpack/package.json index 18f759a..f7e0742 100644 --- a/examples/amis-editor-webpack/package.json +++ b/examples/amis-editor-webpack/package.json @@ -1,7 +1,7 @@ { "name": "@amis-adapter/amis-editor-webpack", "version": "0.1.0", - "private": true, + "private": false, "dependencies": { "@fortawesome/fontawesome-free": "^5.15.3", "@rescripts/cli": "^0.0.16", @@ -59,7 +59,8 @@ } ], "publishConfig": { - "registry": "https://registry.npmjs.org" + "registry": "https://registry.npmjs.org", + "access": "public" }, "repository": { "type": "git", diff --git a/examples/vue-amis-editor-webpack/package.json b/examples/vue-amis-editor-webpack/package.json index 044a542..1d76d72 100644 --- a/examples/vue-amis-editor-webpack/package.json +++ b/examples/vue-amis-editor-webpack/package.json @@ -1,7 +1,7 @@ { "name": "@amis-adapter/vue-amis-editor-webpack", "version": "0.1.0", - "private": true, + "private": false, "packageManager": "yarn@1.22.22", "scripts": { "serve": "vue-cli-service serve", @@ -68,7 +68,8 @@ } ], "publishConfig": { - "registry": "https://registry.npmjs.org" + "registry": "https://registry.npmjs.org", + "access": "public" }, "repository": { "type": "git", diff --git a/examples/vue-editor2.7/package.json b/examples/vue-editor2.7/package.json index f48d1d4..2e15155 100644 --- a/examples/vue-editor2.7/package.json +++ b/examples/vue-editor2.7/package.json @@ -1,7 +1,7 @@ { "name": "@amis-adapter/vue-editor2.7", "packageManager": "yarn@1.22.22", - "private": true, + "private": false, "version": "0.0.0", "type": "module", "scripts": { @@ -54,7 +54,8 @@ } ], "publishConfig": { - "registry": "https://registry.npmjs.org" + "registry": "https://registry.npmjs.org", + "access": "public" }, "repository": { "type": "git", diff --git a/examples/vue2.7/package.json b/examples/vue2.7/package.json index b26ed06..529130b 100644 --- a/examples/vue2.7/package.json +++ b/examples/vue2.7/package.json @@ -1,6 +1,6 @@ { "name": "@amis-adapter/vue2.7", - "private": true, + "private": false, "version": "0.0.0", "type": "module", "scripts": { @@ -35,7 +35,8 @@ } ], "publishConfig": { - "registry": "https://registry.npmjs.org" + "registry": "https://registry.npmjs.org", + "access": "public" }, "repository": { "type": "git", diff --git a/packages/docs/package.json b/packages/docs/package.json index f61b859..24c573a 100644 --- a/packages/docs/package.json +++ b/packages/docs/package.json @@ -1,7 +1,7 @@ { "name": "@amis-adapter/docs", "version": "1.0.0", - "private": true, + "private": false, "scripts": { "dev": "rspress dev", "build": "rspress build", @@ -17,5 +17,9 @@ }, "devDependencies": { "@types/node": "^16" + }, + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public" } }