Skip to content

Commit

Permalink
feat: update template (#103)
Browse files Browse the repository at this point in the history
* feat: update template

* chore: version and changelog
  • Loading branch information
luhc228 authored Dec 6, 2023
1 parent 984f002 commit ba2be09
Show file tree
Hide file tree
Showing 14 changed files with 24 additions and 26 deletions.
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

0 comments on commit ba2be09

Please sign in to comment.