lemmafit 0.2.2 → 0.2.3

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.
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+ const { execSync } = require('child_process');
3
+
4
+ try {
5
+ execSync('claimcheck --version', { stdio: 'ignore' });
6
+ } catch {
7
+ if (process.env.npm_config_global === 'true') {
8
+ console.log('Installing claimcheck CLI...');
9
+ try {
10
+ execSync('npm install -g claimcheck', { stdio: 'inherit' });
11
+ } catch {
12
+ console.warn(
13
+ '\n⚠ Failed to install claimcheck. Install it manually:\n' +
14
+ ' npm install -g claimcheck\n'
15
+ );
16
+ }
17
+ } else {
18
+ console.warn(
19
+ '\n⚠ lemmafit requires the claimcheck CLI, but it was not found on your PATH.\n' +
20
+ ' Install it with: npm install -g claimcheck\n'
21
+ );
22
+ }
23
+ }
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "verified",
16
16
  "proof"
17
17
  ],
18
- "version": "0.2.2",
18
+ "version": "0.2.3",
19
19
  "type": "commonjs",
20
20
  "files": [
21
21
  "cli/",
@@ -36,7 +36,7 @@
36
36
  "lemmafit-generate-guarantees": "cli/generate-guarantees-md.js"
37
37
  },
38
38
  "scripts": {
39
- "postinstall": "node ./cli/sync.js && node ./cli/download-dafny2js.js && node ./lib/download-dafny.js"
39
+ "postinstall": "node ./cli/sync.js && node ./cli/download-dafny2js.js && node ./lib/download-dafny.js && node ./cli/check-claimcheck.js"
40
40
  },
41
41
  "dependencies": {
42
42
  "js-yaml": "^4.1.1",