Skip to content

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

fix: exclude settings.local.json from cli install (#16)

Viet Tran5586da9381cf
diff --git a/cli/.npmignore b/cli/.npmignore
new file mode 100644
index 0000000..9388f73
--- /dev/null
+++ b/cli/.npmignore
@@ -0,0 +1,2 @@
+**/settings.local.json
+**/__pycache__/
diff --git a/cli/package.json b/cli/package.json
index a7ccf46..c9b2e8d 100644
--- a/cli/package.json
+++ b/cli/package.json
@@ -1,6 +1,6 @@
{
"name": "uipro-cli",
- "version": "1.1.0",
+ "version": "1.1.1",
"description": "CLI to install UI/UX Pro Max skill for AI coding assistants",
"type": "module",
"bin": {
diff --git a/cli/src/index.ts b/cli/src/index.ts
index 5b1a457..0412493 100644
--- a/cli/src/index.ts
+++ b/cli/src/index.ts
@@ -12,7 +12,7 @@ const program = new Command();
program
.name('uipro')
.description('CLI to install UI/UX Pro Max skill for AI coding assistants')
- .version('1.1.0');
+ .version('1.1.1');
program
.command('init')
diff --git a/cli/src/utils/extract.ts b/cli/src/utils/extract.ts
index 038a73c..d3413fa 100644
--- a/cli/src/utils/extract.ts
+++ b/cli/src/utils/extract.ts
@@ -1,5 +1,5 @@
import { mkdir, rm, access, cp } from 'node:fs/promises';
-import { join } from 'node:path';
+import { join, basename } from 'node:path';
import { exec } from 'node:child_process';
import { promisify } from 'node:util';
import type { AIType } from '../types/index.js';
@@ -7,6 +7,8 @@ import { AI_FOLDERS } from '../types/index.js';
const execAsync = promisify(exec);
+const EXCLUDED_FILES = ['settings.local.json'];
+
export async function extractZip(zipPath: string, destDir: string): Promise<void> {
try {
const isWindows = process.platform === 'win32';
@@ -56,9 +58,15 @@ export async function copyFolders(
// Create target directory if needed
await mkdir(targetPath, { recursive: true });
+ // Filter function to exclude certain files
+ const filterFn = (src: string): boolean => {
+ const fileName = basename(src);
+ return !EXCLUDED_FILES.includes(fileName);
+ };
+
// Copy recursively
try {
- await cp(sourcePath, targetPath, { recursive: true });
+ await cp(sourcePath, targetPath, { recursive: true, filter: filterFn });
copiedFolders.push(folder);
} catch {
// Try shell fallback for older Node versions