@yoamigo.com/cli 0.1.15 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -248,7 +248,17 @@ import fs4 from "fs-extra";
248
248
  import path4 from "path";
249
249
  var API_BASE_URL2 = getApiBaseUrl();
250
250
  var APP_BASE_URL = getAppBaseUrl();
251
- var EXCLUDE_PATTERNS = ["node_modules", "dist", ".git", "vite.config.ts", "tsconfig.json", "*.log"];
251
+ var EXCLUDE_PATTERNS = ["node_modules", "dist", ".git", "*.log"];
252
+ var ROOT_FILES = [
253
+ "index.html",
254
+ "package.json",
255
+ "package-lock.json",
256
+ "pnpm-lock.yaml",
257
+ "vite.config.ts",
258
+ "tsconfig.json",
259
+ "postcss.config.cjs",
260
+ "tailwind.config.ts"
261
+ ];
252
262
  var deployCommand = new Command4("deploy").description("Upload template to YoAmigo").argument("<version>", "Template version (e.g., 1.0.0)").option("-v, --verbose", "Show detailed logging for debugging").action(async (version, options) => {
253
263
  const verbose = options.verbose;
254
264
  if (verbose) {
@@ -403,7 +413,12 @@ async function collectFiles(dir) {
403
413
  const files = [];
404
414
  const srcDir = path4.join(dir, "src");
405
415
  const publicDir = path4.join(dir, "public");
406
- const packageJsonPath = path4.join(dir, "package.json");
416
+ for (const rootFile of ROOT_FILES) {
417
+ const filePath = path4.join(dir, rootFile);
418
+ if (await fs4.pathExists(filePath)) {
419
+ files.push(filePath);
420
+ }
421
+ }
407
422
  if (await fs4.pathExists(srcDir)) {
408
423
  const srcFiles = await collectFilesRecursive(srcDir);
409
424
  files.push(...srcFiles);
@@ -412,9 +427,6 @@ async function collectFiles(dir) {
412
427
  const publicFiles = await collectFilesRecursive(publicDir);
413
428
  files.push(...publicFiles);
414
429
  }
415
- if (await fs4.pathExists(packageJsonPath)) {
416
- files.push(packageJsonPath);
417
- }
418
430
  return files;
419
431
  }
420
432
  async function collectFilesRecursive(dir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yoamigo.com/cli",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "CLI for creating and managing YoAmigo templates",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE",