diff --git a/packages/create-pkg/CHANGELOG.md b/packages/create-pkg/CHANGELOG.md index b86d0cec..b7713b91 100644 --- a/packages/create-pkg/CHANGELOG.md +++ b/packages/create-pkg/CHANGELOG.md @@ -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 diff --git a/packages/create-pkg/package.json b/packages/create-pkg/package.json index e9958601..78945de7 100644 --- a/packages/create-pkg/package.json +++ b/packages/create-pkg/package.json @@ -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", diff --git a/packages/create-pkg/src/index.mts b/packages/create-pkg/src/index.mts index 205d95f7..e0a81e4b 100644 --- a/packages/create-pkg/src/index.mts +++ b/packages/create-pkg/src/index.mts @@ -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,