Skip to content

Commit 49f2002

Browse files
authored
fix: remove docs directory (#637)
1 parent e991fe0 commit 49f2002

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

packages/create-pkg/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Changelog
22

3+
## 1.3.5
4+
5+
- fix: remove docs directory
6+
37
## 1.3.4
48

5-
- chore rename internal -> isAliInternal
9+
- chore: rename internal -> isAliInternal
610

711
## 1.3.3
812

packages/create-pkg/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ice/create-pkg",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "npm init @ice/pkg",
55
"type": "module",
66
"exports": "./lib/index.mjs",

packages/create-pkg/src/index.mts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ async function create(dirPath: string, dirname: string, options: CliOptions): Pr
102102
await removeFilesAndContent(dirPath);
103103
}
104104

105-
if (isAliInternal) {
105+
if (isAliInternal && ['@ice/template-pkg-monorepo-react', '@ice/template-pkg-react'].includes(templateNpmName)) {
106+
// we use the dev directory to preview components
106107
const docsDirectories = await globby('**/docs', {
107108
cwd: dirPath,
108109
onlyFiles: false,

0 commit comments

Comments
 (0)