diff --git a/packages/template-pkg-monorepo-node/template/component/build.config.mts b/packages/template-pkg-monorepo-node/template/component/build.config.mts index 049ea25..3afe624 100644 --- a/packages/template-pkg-monorepo-node/template/component/build.config.mts +++ b/packages/template-pkg-monorepo-node/template/component/build.config.mts @@ -23,7 +23,7 @@ export default defineConfig({ // 2. Remove category link. const newSidebarItems = defaultSidebarItems.map(({ link, ...rest }: any) => ({ ...rest, - items: rest.items.map((item: any) => item.items).flat(), + items: rest.items.filter((item: any) => item.label === 'docs').map(item => item.items).flat(), })); return newSidebarItems; diff --git a/packages/template-pkg-monorepo-node/template/component/package.json b/packages/template-pkg-monorepo-node/template/component/package.json index daaaef4..b4575ba 100644 --- a/packages/template-pkg-monorepo-node/template/component/package.json +++ b/packages/template-pkg-monorepo-node/template/component/package.json @@ -29,5 +29,5 @@ "react-dom": "^18.2.0", "rimraf": "^4.1.2" }, - "packageManager": "pnpm@7.22.0" + "packageManager": "pnpm@8.11.0" } diff --git a/packages/template-pkg-monorepo-react/template/component/build.config.mts b/packages/template-pkg-monorepo-react/template/component/build.config.mts index 049ea25..3afe624 100644 --- a/packages/template-pkg-monorepo-react/template/component/build.config.mts +++ b/packages/template-pkg-monorepo-react/template/component/build.config.mts @@ -23,7 +23,7 @@ export default defineConfig({ // 2. Remove category link. const newSidebarItems = defaultSidebarItems.map(({ link, ...rest }: any) => ({ ...rest, - items: rest.items.map((item: any) => item.items).flat(), + items: rest.items.filter((item: any) => item.label === 'docs').map(item => item.items).flat(), })); return newSidebarItems; diff --git a/packages/template-pkg-monorepo-react/template/component/package.json b/packages/template-pkg-monorepo-react/template/component/package.json index e515ef4..852a8f0 100644 --- a/packages/template-pkg-monorepo-react/template/component/package.json +++ b/packages/template-pkg-monorepo-react/template/component/package.json @@ -33,5 +33,5 @@ "rimraf": "^4.1.2", "stylelint": "^15.0.0" }, - "packageManager": "pnpm@7.22.0" + "packageManager": "pnpm@8.11.0" } diff --git a/packages/template-pkg-monorepo-react/template/component/packages/component-a/package.json b/packages/template-pkg-monorepo-react/template/component/packages/component-a/package.json index 80a2c60..77d59a7 100644 --- a/packages/template-pkg-monorepo-react/template/component/packages/component-a/package.json +++ b/packages/template-pkg-monorepo-react/template/component/packages/component-a/package.json @@ -53,8 +53,5 @@ "peerDependencies": { "react": "^17 || ^18" }, - "publishConfig": { - "registry": "https://registry.npm.alibaba-inc.com" - }, "license": "MIT" } \ No newline at end of file diff --git a/packages/template-pkg-monorepo-react/template/component/packages/component-b/package.json b/packages/template-pkg-monorepo-react/template/component/packages/component-b/package.json index 6fa19ed..4febd0f 100644 --- a/packages/template-pkg-monorepo-react/template/component/packages/component-b/package.json +++ b/packages/template-pkg-monorepo-react/template/component/packages/component-b/package.json @@ -53,8 +53,5 @@ "peerDependencies": { "react": "^17 || ^18" }, - "publishConfig": { - "registry": "https://registry.npm.alibaba-inc.com" - }, "license": "MIT" } \ No newline at end of file diff --git a/packages/template-pkg-monorepo-react/template/component/packages/component-c/package.json b/packages/template-pkg-monorepo-react/template/component/packages/component-c/package.json index c7e87ff..f69e85a 100644 --- a/packages/template-pkg-monorepo-react/template/component/packages/component-c/package.json +++ b/packages/template-pkg-monorepo-react/template/component/packages/component-c/package.json @@ -53,8 +53,5 @@ "peerDependencies": { "react": "^17 || ^18" }, - "publishConfig": { - "registry": "https://registry.npm.alibaba-inc.com" - }, "license": "MIT" } \ No newline at end of file diff --git a/packages/template-pkg-node/template/component/package.json.ejs b/packages/template-pkg-node/template/component/package.json.ejs index 8eeb6b6..ada54be 100644 --- a/packages/template-pkg-node/template/component/package.json.ejs +++ b/packages/template-pkg-node/template/component/package.json.ejs @@ -14,10 +14,6 @@ "types": "es2017/index.d.ts", "exports": { ".": { - "es2017": { - "types": "./es2017/index.d.ts", - "default": "./es2017/index.js" - }, "default": { "types": "./es2017/index.d.ts", "default": "./es2017/index.js"