We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec18dc2 commit 4c978d3Copy full SHA for 4c978d3
1 file changed
scripts/utils/path.mjs
@@ -0,0 +1,18 @@
1
+/**
2
+ * @fileoverview Simplified path utilities for build scripts.
3
+ *
4
+ * This is intentionally separate from src/lib/path/* to avoid circular
5
+ * dependencies where build scripts depend on the built dist output.
6
+ */
7
+
8
+import path from 'node:path'
9
10
11
+ * Normalize a file path to use forward slashes
12
13
+ * @param {string} filePath - Path to normalize
14
+ * @returns {string}
15
16
+export function normalizePath(filePath) {
17
+ return path.normalize(filePath).split(path.sep).join('/')
18
+}
0 commit comments