@inflector/aura 0.1.3 → 0.1.4

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/bin.js +7 -1
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -344,6 +344,10 @@ async function push() {
344
344
  spin.stop("Schema missing", false);
345
345
  return;
346
346
  }
347
+ // Utility to convert all paths to POSIX (forward slash) format
348
+ function toPosixPath(p) {
349
+ return p.split('\\').join('/');
350
+ }
347
351
  function collectFunctions(baseDir, baseRel = "") {
348
352
  let results = {};
349
353
  if (!fs.existsSync(baseDir) || !fs.statSync(baseDir).isDirectory()) {
@@ -351,7 +355,9 @@ async function push() {
351
355
  }
352
356
  for (const entry of fs.readdirSync(baseDir, { withFileTypes: true })) {
353
357
  const entryPath = join(baseDir, entry.name);
354
- const relPath = baseRel ? join(baseRel, entry.name) : entry.name;
358
+ // Always use POSIX-style for relPath
359
+ const relPathRaw = baseRel ? join(baseRel, entry.name) : entry.name;
360
+ const relPath = toPosixPath(relPathRaw);
355
361
  if (entry.isDirectory()) {
356
362
  Object.assign(results, collectFunctions(entryPath, relPath));
357
363
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/aura",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",