orchid-orm 1.5.5 → 1.5.8
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/CHANGELOG.md +20 -0
- package/dist/index.js +3 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- package/src/codegen/utils.ts +4 -6
package/dist/index.mjs
CHANGED
|
@@ -1558,12 +1558,10 @@ const ts = {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
};
|
|
1560
1560
|
|
|
1561
|
-
const getRelativePath = (from, to) => {
|
|
1562
|
-
const rel = path__default.relative(path__default.dirname(from), to);
|
|
1563
|
-
return rel.startsWith("./") || rel.startsWith("../") ? rel : `./${rel}`;
|
|
1564
|
-
};
|
|
1565
1561
|
const getImportPath = (from, to) => {
|
|
1566
|
-
|
|
1562
|
+
const rel = path__default.posix.relative(path__default.dirname(from), to);
|
|
1563
|
+
const importPath = rel.startsWith("./") || rel.startsWith("../") ? rel : `./${rel}`;
|
|
1564
|
+
return importPath.replace(/\.[tj]s$/, "");
|
|
1567
1565
|
};
|
|
1568
1566
|
|
|
1569
1567
|
const libraryName = "orchid-orm";
|