@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 CHANGED
@@ -38,9 +38,9 @@ var Civet = (() => {
38
38
  ));
39
39
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
40
40
 
41
- // node_modules/@danielx/hera/dist/machine.js
41
+ // ../Hera/dist/machine.js
42
42
  var require_machine = __commonJS({
43
- "node_modules/@danielx/hera/dist/machine.js"(exports, module) {
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
- const filenames = [];
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
- const typescript = options.typecheck || options.emitDeclaration;
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
- // node_modules/@danielx/hera/dist/machine.js
33
+ // ../Hera/dist/machine.js
34
34
  var require_machine = __commonJS({
35
- "node_modules/@danielx/hera/dist/machine.js"(exports2, module2) {
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
- // node_modules/@danielx/hera/dist/machine.js
31
+ // ../Hera/dist/machine.js
32
32
  var require_machine = __commonJS({
33
- "node_modules/@danielx/hera/dist/machine.js"(exports, module) {
33
+ "../Hera/dist/machine.js"(exports, module) {
34
34
  "use strict";
35
35
  var __defProp2 = Object.defineProperty;
36
36
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
3
  "type": "commonjs",
4
- "version": "0.7.15",
4
+ "version": "0.7.16",
5
5
  "description": "CoffeeScript style syntax for TypeScript",
6
6
  "main": "dist/main.js",
7
7
  "module": "dist/main.mjs",