detype 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/cli.js +16 -11
  2. package/package.json +11 -11
package/dist/cli.js CHANGED
@@ -279,7 +279,7 @@ var import_fast_glob = __toESM(require("fast-glob"));
279
279
  // package.json
280
280
  var package_default = {
281
281
  name: "detype",
282
- version: "1.0.4",
282
+ version: "1.0.5",
283
283
  description: "Removes TypeScript type annotations but keeps the formatting",
284
284
  main: "dist/index.js",
285
285
  bin: "detype.js",
@@ -300,10 +300,10 @@ var package_default = {
300
300
  "index.d.ts"
301
301
  ],
302
302
  dependencies: {
303
- "@babel/core": "^7.23.9",
303
+ "@babel/core": "^7.24.0",
304
304
  "@babel/preset-typescript": "^7.23.3",
305
- "@vue/compiler-dom": "^3.4.15",
306
- "@vue/compiler-sfc": "^3.4.15",
305
+ "@vue/compiler-dom": "^3.4.21",
306
+ "@vue/compiler-sfc": "^3.4.21",
307
307
  "@vuedx/compiler-sfc": "0.7.1",
308
308
  "@vuedx/template-ast-types": "0.7.1",
309
309
  "fast-glob": "^3.3.2",
@@ -311,16 +311,16 @@ var package_default = {
311
311
  "string.prototype.replaceall": "^1.0.9"
312
312
  },
313
313
  devDependencies: {
314
- "@babel/traverse": "^7.23.9",
315
- "@cyco130/eslint-config": "^3.6.3",
314
+ "@babel/traverse": "^7.24.0",
315
+ "@cyco130/eslint-config": "^3.7.0",
316
316
  "@types/babel__core": "^7.20.5",
317
317
  "@types/babel__traverse": "^7.20.5",
318
- "@types/node": "20.11.16",
319
- eslint: "^8.56.0",
318
+ "@types/node": "20.11.25",
319
+ eslint: "^8.57.0",
320
320
  rimraf: "^5.0.5",
321
- tsup: "^8.0.1",
322
- typescript: "^5.3.3",
323
- vitest: "1.2.2"
321
+ tsup: "^8.0.2",
322
+ typescript: "^5.4.2",
323
+ vitest: "1.3.1"
324
324
  },
325
325
  repository: {
326
326
  type: "git",
@@ -382,6 +382,11 @@ async function cli(...args2) {
382
382
  if (!removeMagic) {
383
383
  [input, output] = args2;
384
384
  }
385
+ if (!input) {
386
+ console.error("No input file or directory given");
387
+ printUsage();
388
+ return false;
389
+ }
385
390
  const inputStat = await stat(input);
386
391
  if (inputStat.isDirectory()) {
387
392
  if (!output) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "detype",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Removes TypeScript type annotations but keeps the formatting",
5
5
  "main": "dist/index.js",
6
6
  "bin": "detype.js",
@@ -9,10 +9,10 @@
9
9
  "index.d.ts"
10
10
  ],
11
11
  "dependencies": {
12
- "@babel/core": "^7.23.9",
12
+ "@babel/core": "^7.24.0",
13
13
  "@babel/preset-typescript": "^7.23.3",
14
- "@vue/compiler-dom": "^3.4.15",
15
- "@vue/compiler-sfc": "^3.4.15",
14
+ "@vue/compiler-dom": "^3.4.21",
15
+ "@vue/compiler-sfc": "^3.4.21",
16
16
  "@vuedx/compiler-sfc": "0.7.1",
17
17
  "@vuedx/template-ast-types": "0.7.1",
18
18
  "fast-glob": "^3.3.2",
@@ -20,16 +20,16 @@
20
20
  "string.prototype.replaceall": "^1.0.9"
21
21
  },
22
22
  "devDependencies": {
23
- "@babel/traverse": "^7.23.9",
24
- "@cyco130/eslint-config": "^3.6.3",
23
+ "@babel/traverse": "^7.24.0",
24
+ "@cyco130/eslint-config": "^3.7.0",
25
25
  "@types/babel__core": "^7.20.5",
26
26
  "@types/babel__traverse": "^7.20.5",
27
- "@types/node": "20.11.16",
28
- "eslint": "^8.56.0",
27
+ "@types/node": "20.11.25",
28
+ "eslint": "^8.57.0",
29
29
  "rimraf": "^5.0.5",
30
- "tsup": "^8.0.1",
31
- "typescript": "^5.3.3",
32
- "vitest": "1.2.2"
30
+ "tsup": "^8.0.2",
31
+ "typescript": "^5.4.2",
32
+ "vitest": "1.3.1"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",