juxscript 1.0.13 → 1.0.14

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/bin/cli.js CHANGED
@@ -106,7 +106,7 @@ async function buildProject(isServe = false) {
106
106
  await copyLibToOutput(PATHS.juxLib, PATHS.frontendDist);
107
107
 
108
108
  // Step 2.5: Copy presets folder
109
- await copyPresetsToOutput(PATHS.juxLib, PATHS.frontendDist);
109
+ await copyPresetsToOutput(PATHS.packageRoot, PATHS.frontendDist);
110
110
 
111
111
  // Step 3: Copy project assets from jux/ (CSS, JS, images)
112
112
  await copyProjectAssets(PATHS.juxSource, PATHS.frontendDist);
@@ -280,13 +280,13 @@ export async function transpileProjectTypeScript(srcDir, destDir) {
280
280
  /**
281
281
  * Copy presets folder from lib to dist
282
282
  *
283
- * @param {string} libDir - Source lib directory
283
+ * @param {string} packageRoot - Source package root directory
284
284
  * @param {string} distDir - Destination directory
285
285
  */
286
- export async function copyPresetsToOutput(libDir, distDir) {
286
+ export async function copyPresetsToOutput(packageRoot, distDir) {
287
287
  console.log('📦 Copying presets...');
288
288
 
289
- const presetsSrc = path.join(libDir, 'presets');
289
+ const presetsSrc = path.join(packageRoot, 'presets');
290
290
  const presetsDest = path.join(distDir, 'presets');
291
291
 
292
292
  if (!fs.existsSync(presetsSrc)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juxscript",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "type": "module",
5
5
  "description": "A JavaScript UX authorship platform",
6
6
  "main": "lib/jux.js",