Skip to content

Commit

Permalink
chore: rename internal param to isAliInternal (#636)
Browse files Browse the repository at this point in the history
* chore: rename internal param to isAliInternal

* chore: version and changelog
  • Loading branch information
luhc228 authored Feb 28, 2024
1 parent 8f49cce commit e991fe0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions packages/create-pkg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.3.4

- chore rename internal -> isAliInternal

## 1.3.3

- feat: support handle pkg-plugin-dev
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.3",
"version": "1.3.4",
"description": "npm init @ice/pkg",
"type": "module",
"exports": "./lib/index.mjs",
Expand Down
6 changes: 3 additions & 3 deletions packages/create-pkg/src/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ interface CliOptions {

async function create(dirPath: string, dirname: string, options: CliOptions): Promise<void> {
const info = await getInfo();
const isInternal = await checkAliInternal();
const isAliInternal = await checkAliInternal();

await fs.ensureDir(dirPath);
const empty = await checkEmpty(dirPath);
Expand Down Expand Up @@ -89,7 +89,7 @@ async function create(dirPath: string, dirname: string, options: CliOptions): Pr
npmName,
// @ts-expect-error generateMaterial should support index signature.
workspace: options.workspace,
internal: isInternal,
isAliInternal,
},
materialTemplateDir: tempDir,
materialType: 'component',
Expand All @@ -102,7 +102,7 @@ async function create(dirPath: string, dirname: string, options: CliOptions): Pr
await removeFilesAndContent(dirPath);
}

if (isInternal) {
if (isAliInternal) {
const docsDirectories = await globby('**/docs', {
cwd: dirPath,
onlyFiles: false,
Expand Down

0 comments on commit e991fe0

Please sign in to comment.