Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update template #103

Merged
merged 2 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/template-pkg-monorepo-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.0.13

- [fix] 修复生成文档目录时包含其他非 `docs` 目录下文档问题
- [chore] 更新 packageManager
- [chore] 移除 publishConfig

## 1.0.12

- [fix] some files are not published
Expand Down
2 changes: 1 addition & 1 deletion packages/template-pkg-monorepo-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/template-pkg-monorepo-node",
"version": "1.0.12",
"version": "1.0.13",
"files": [
"template",
"!template/component/.docusaurus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"react-dom": "^18.2.0",
"rimraf": "^4.1.2"
},
"packageManager": "pnpm@7.22.0"
"packageManager": "pnpm@8.6.0"
}
6 changes: 6 additions & 0 deletions packages/template-pkg-monorepo-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 1.0.11

- [fix] 修复生成文档目录时包含其他非 `docs` 目录下文档问题
- [chore] 更新 packageManager
- [chore] 移除 publishConfig

## 1.0.10

- [fix] some files are not published
Expand Down
2 changes: 1 addition & 1 deletion packages/template-pkg-monorepo-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/template-pkg-monorepo-react",
"version": "1.0.10",
"version": "1.0.11",
"files": [
"template",
"!template/component/.docusaurus",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
"rimraf": "^4.1.2",
"stylelint": "^15.0.0"
},
"packageManager": "pnpm@7.22.0"
"packageManager": "pnpm@8.6.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,5 @@
"peerDependencies": {
"react": "^17 || ^18"
},
"publishConfig": {
"registry": "https://registry.npm.alibaba-inc.com"
},
"license": "MIT"
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,5 @@
"peerDependencies": {
"react": "^17 || ^18"
},
"publishConfig": {
"registry": "https://registry.npm.alibaba-inc.com"
},
"license": "MIT"
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,5 @@
"peerDependencies": {
"react": "^17 || ^18"
},
"publishConfig": {
"registry": "https://registry.npm.alibaba-inc.com"
},
"license": "MIT"
}
4 changes: 4 additions & 0 deletions packages/template-pkg-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.13

- [feat] 优化 `exports` 导出

## 1.0.12

- [fix] loss of dependencies(react & react-dom)
Expand Down
2 changes: 1 addition & 1 deletion packages/template-pkg-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/template-pkg-node",
"version": "1.0.12",
"version": "1.0.13",
"files": [
"template"
],
Expand Down
11 changes: 1 addition & 10 deletions packages/template-pkg-node/template/component/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,7 @@
"module": "es2017/index.js",
"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"
}
},
".": "./es2017/index.js",
"./*": "./*"
},
"sideEffects": false,
Expand Down
Loading