@hzhangxyz/ddss 0.0.11 → 0.0.29

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/index.js +1 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -10,7 +10,6 @@ import * as readline from 'node:readline/promises';
10
10
  import { stdout, stdin } from 'node:process';
11
11
  import { parse, unparse } from 'atsds-bnf';
12
12
  import * as readline$1 from 'node:readline';
13
- import { fileURLToPath } from 'node:url';
14
13
 
15
14
  // 定义基础模型类
16
15
  class Fact extends Model {
@@ -611,7 +610,7 @@ function cli() {
611
610
  });
612
611
  program.parse();
613
612
  }
614
- if (process.argv[1] === fileURLToPath(import.meta.url)) {
613
+ if (import.meta.main) {
615
614
  cli();
616
615
  }
617
616
 
package/package.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@hzhangxyz/ddss",
3
- "version": "0.0.11",
4
3
  "description": "Distributed Deductive System Sorts",
5
4
  "author": "Hao Zhang <hzhangxyz@outlook.com>",
6
5
  "license": "AGPL-3.0-or-later",
@@ -32,5 +31,6 @@
32
31
  "rollup": "^4.54.0",
33
32
  "tslib": "^2.8.1",
34
33
  "typescript": "^5.9.3"
35
- }
34
+ },
35
+ "version": "0.0.29"
36
36
  }