orchid-orm 1.5.7 → 1.5.9
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 +13 -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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -1586,12 +1586,10 @@ const ts = {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
};
|
|
1588
1588
|
|
|
1589
|
-
const getRelativePath = (from, to) => {
|
|
1590
|
-
const rel = path__default["default"].relative(path__default["default"].dirname(from), to);
|
|
1591
|
-
return rel.startsWith("./") || rel.startsWith("../") ? rel : `./${rel}`;
|
|
1592
|
-
};
|
|
1593
1589
|
const getImportPath = (from, to) => {
|
|
1594
|
-
|
|
1590
|
+
const rel = path__default["default"].posix.relative(path__default["default"].dirname(from), to);
|
|
1591
|
+
const importPath = rel.startsWith("./") || rel.startsWith("../") ? rel : `./${rel}`;
|
|
1592
|
+
return importPath.replace(/\.[tj]s$/, "");
|
|
1595
1593
|
};
|
|
1596
1594
|
|
|
1597
1595
|
const libraryName = "orchid-orm";
|