rocketh 0.10.10 → 0.10.11
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 +6 -0
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/{index-DRZG9qM_.mjs → index-Cs7zkNfV.mjs} +7 -4
- package/dist/index-Cs7zkNfV.mjs.map +1 -0
- package/dist/{index-AgLCQD7y.cjs → index-t2GbLf0K.cjs} +8 -5
- package/dist/index-t2GbLf0K.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/executor/index.ts +6 -3
- package/dist/index-AgLCQD7y.cjs.map +0 -1
- package/dist/index-DRZG9qM_.mjs.map +0 -1
|
@@ -14,7 +14,7 @@ var prompts = require('prompts');
|
|
|
14
14
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
15
15
|
var require$1 = (
|
|
16
16
|
false
|
|
17
|
-
? /* @__PURE__ */ module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index-
|
|
17
|
+
? /* @__PURE__ */ module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index-t2GbLf0K.cjs', document.baseURI).href)))
|
|
18
18
|
: require
|
|
19
19
|
);
|
|
20
20
|
|
|
@@ -1118,6 +1118,7 @@ async function executeDeployScripts(config, context, args) {
|
|
|
1118
1118
|
return 0;
|
|
1119
1119
|
});
|
|
1120
1120
|
let providedContext = context;
|
|
1121
|
+
const providedFromArguments = !!providedContext;
|
|
1121
1122
|
const scriptModuleByFilePath = {};
|
|
1122
1123
|
const scriptPathBags = {};
|
|
1123
1124
|
const scriptFilePaths = [];
|
|
@@ -1137,10 +1138,12 @@ async function executeDeployScripts(config, context, args) {
|
|
|
1137
1138
|
}
|
|
1138
1139
|
}
|
|
1139
1140
|
scriptModuleByFilePath[scriptFilePath] = scriptModule;
|
|
1140
|
-
if (
|
|
1141
|
-
|
|
1141
|
+
if (!providedFromArguments) {
|
|
1142
|
+
if (providedContext && providedContext !== scriptModule.providedContext) {
|
|
1143
|
+
throw new Error(`context between 2 scripts is different, please share the same across them`);
|
|
1144
|
+
}
|
|
1145
|
+
providedContext = scriptModule.providedContext;
|
|
1142
1146
|
}
|
|
1143
|
-
providedContext = scriptModule.providedContext;
|
|
1144
1147
|
} catch (e) {
|
|
1145
1148
|
logger.error(`could not import ${filepath}`);
|
|
1146
1149
|
throw e;
|
|
@@ -1311,4 +1314,4 @@ exports.mergeArtifacts = mergeArtifacts;
|
|
|
1311
1314
|
exports.readAndResolveConfig = readAndResolveConfig;
|
|
1312
1315
|
exports.readConfig = readConfig;
|
|
1313
1316
|
exports.resolveConfig = resolveConfig;
|
|
1314
|
-
//# sourceMappingURL=index-
|
|
1317
|
+
//# sourceMappingURL=index-t2GbLf0K.cjs.map
|