@danielx/civet 0.7.15 → 0.7.16
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/dist/browser.js +2 -2
- package/dist/civet +12 -11
- package/dist/main.js +2 -2
- package/dist/main.mjs +2 -2
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -38,9 +38,9 @@ var Civet = (() => {
|
|
|
38
38
|
));
|
|
39
39
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
40
40
|
|
|
41
|
-
//
|
|
41
|
+
// ../Hera/dist/machine.js
|
|
42
42
|
var require_machine = __commonJS({
|
|
43
|
-
"
|
|
43
|
+
"../Hera/dist/machine.js"(exports, module) {
|
|
44
44
|
"use strict";
|
|
45
45
|
var __defProp2 = Object.defineProperty;
|
|
46
46
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
package/dist/civet
CHANGED
|
@@ -99,7 +99,7 @@ var encoding = "utf8";
|
|
|
99
99
|
function parseArgs(args) {
|
|
100
100
|
const options = {};
|
|
101
101
|
const isRun = () => !(options.ast || options.compile || options.typecheck || options.emitDeclaration);
|
|
102
|
-
|
|
102
|
+
let filenames = [];
|
|
103
103
|
let scriptArgs = [];
|
|
104
104
|
let i = 0;
|
|
105
105
|
let errors = 0;
|
|
@@ -213,6 +213,16 @@ function parseArgs(args) {
|
|
|
213
213
|
}
|
|
214
214
|
i++;
|
|
215
215
|
}
|
|
216
|
+
options.typescript = Boolean(options.typecheck || options.emitDeclaration);
|
|
217
|
+
if (!(filenames.length || options.typescript)) {
|
|
218
|
+
if (process.stdin.isTTY) {
|
|
219
|
+
options.repl = true;
|
|
220
|
+
} else {
|
|
221
|
+
options.compile = true;
|
|
222
|
+
options.run = false;
|
|
223
|
+
filenames = ["-"];
|
|
224
|
+
}
|
|
225
|
+
}
|
|
216
226
|
if (errors) {
|
|
217
227
|
process.exit(Math.min(255, errors));
|
|
218
228
|
}
|
|
@@ -454,16 +464,7 @@ async function cli() {
|
|
|
454
464
|
...options
|
|
455
465
|
};
|
|
456
466
|
}
|
|
457
|
-
|
|
458
|
-
if (!(filenames.length || typescript)) {
|
|
459
|
-
if (process.stdin.isTTY) {
|
|
460
|
-
options.repl = true;
|
|
461
|
-
} else {
|
|
462
|
-
options.compile = true;
|
|
463
|
-
filenames = ["-"];
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
if (typescript) {
|
|
467
|
+
if (options.typescript) {
|
|
467
468
|
const unpluginOptions = {
|
|
468
469
|
...options,
|
|
469
470
|
ts: options.js ? "civet" : "preserve",
|
package/dist/main.js
CHANGED
|
@@ -30,9 +30,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
));
|
|
31
31
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// ../Hera/dist/machine.js
|
|
34
34
|
var require_machine = __commonJS({
|
|
35
|
-
"
|
|
35
|
+
"../Hera/dist/machine.js"(exports2, module2) {
|
|
36
36
|
"use strict";
|
|
37
37
|
var __defProp2 = Object.defineProperty;
|
|
38
38
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
package/dist/main.mjs
CHANGED
|
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
mod
|
|
29
29
|
));
|
|
30
30
|
|
|
31
|
-
//
|
|
31
|
+
// ../Hera/dist/machine.js
|
|
32
32
|
var require_machine = __commonJS({
|
|
33
|
-
"
|
|
33
|
+
"../Hera/dist/machine.js"(exports, module) {
|
|
34
34
|
"use strict";
|
|
35
35
|
var __defProp2 = Object.defineProperty;
|
|
36
36
|
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|