@nextsparkjs/cli 0.1.0-beta.128 → 0.1.0-beta.129

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.
Files changed (2) hide show
  1. package/dist/cli.js +13 -0
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -4820,6 +4820,12 @@ var ROOT_TEMPLATE_FILES = [
4820
4820
  "i18n.ts"
4821
4821
  // Required for next-intl configuration
4822
4822
  ];
4823
+ var PROTECTED_ROOT_FILES = [
4824
+ "tsconfig.json",
4825
+ // Projects add custom path aliases (e.g. @shared/*)
4826
+ "next.config.mjs"
4827
+ // Projects add custom webpack aliases, plugins, etc.
4828
+ ];
4823
4829
  var MAX_VERBOSE_FILES = 10;
4824
4830
  var MAX_SUMMARY_FILES = 5;
4825
4831
  function getAllFiles(dir, baseDir = dir) {
@@ -4972,6 +4978,13 @@ async function syncAppCommand(options) {
4972
4978
  const targetPath = join12(projectRoot, file);
4973
4979
  if (existsSync11(sourcePath)) {
4974
4980
  const isNew = !existsSync11(targetPath);
4981
+ const isProtected = PROTECTED_ROOT_FILES.includes(file);
4982
+ if (isProtected && !isNew) {
4983
+ if (options.verbose) {
4984
+ console.log(chalk17.gray(` \u25CB Protected (not overwritten): ${file}`));
4985
+ }
4986
+ continue;
4987
+ }
4975
4988
  copyFile(sourcePath, targetPath);
4976
4989
  if (isNew) {
4977
4990
  rootCreated++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextsparkjs/cli",
3
- "version": "0.1.0-beta.128",
3
+ "version": "0.1.0-beta.129",
4
4
  "description": "NextSpark CLI - Complete development toolkit",
5
5
  "type": "module",
6
6
  "bin": {