drizzle-kit 0.18.1-80e9ac8 → 0.18.1-dde2856
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.js +3 -2
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -24326,6 +24326,7 @@ $.log = (entry) => {
|
|
|
24326
24326
|
log(entry);
|
|
24327
24327
|
};
|
|
24328
24328
|
void async function() {
|
|
24329
|
+
const args = process.argv.slice(2).filter((it) => it !== "--esm" && it !== "--cjs").join(" ");
|
|
24329
24330
|
const params = new Set(
|
|
24330
24331
|
argv._.filter((it) => it === "--esm" || it === "--cjs")
|
|
24331
24332
|
);
|
|
@@ -24339,11 +24340,11 @@ void async function() {
|
|
|
24339
24340
|
const type = packagejson["type"];
|
|
24340
24341
|
if (!forseCjs && (forseEsm || type && type === "module")) {
|
|
24341
24342
|
const mjsPath = path.resolve(path.join(__dirname, "index.mjs"));
|
|
24342
|
-
await $`node ${mjsPath} || true`;
|
|
24343
|
+
await $`node ${mjsPath} ${args} || true`;
|
|
24343
24344
|
return;
|
|
24344
24345
|
}
|
|
24345
24346
|
const cjsPath = path.resolve(path.join(__dirname, "index.cjs"));
|
|
24346
|
-
await $`node ${cjsPath} || true`;
|
|
24347
|
+
await $`node ${cjsPath} ${args} || true`;
|
|
24347
24348
|
}();
|
|
24348
24349
|
/*! Bundled license information:
|
|
24349
24350
|
|