Skip to content

Commit

Permalink
fix: remove docs directory (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
luhc228 authored Feb 28, 2024
1 parent e991fe0 commit 49f2002
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
6 changes: 5 additions & 1 deletion packages/create-pkg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Changelog

## 1.3.5

- fix: remove docs directory

## 1.3.4

- chore rename internal -> isAliInternal
- chore: rename internal -> isAliInternal

## 1.3.3

Expand Down
2 changes: 1 addition & 1 deletion packages/create-pkg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ice/create-pkg",
"version": "1.3.4",
"version": "1.3.5",
"description": "npm init @ice/pkg",
"type": "module",
"exports": "./lib/index.mjs",
Expand Down
3 changes: 2 additions & 1 deletion packages/create-pkg/src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ async function create(dirPath: string, dirname: string, options: CliOptions): Pr
await removeFilesAndContent(dirPath);
}

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

0 comments on commit 49f2002

Please sign in to comment.