@checksum-ai/runtime 1.0.22 → 1.0.23

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/package.json +1 -1
  2. package/postinstall.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checksum-ai/runtime",
3
- "version": "1.0.22",
3
+ "version": "1.0.23",
4
4
  "description": "Checksum.ai test runtime",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/postinstall.js CHANGED
@@ -4,6 +4,10 @@ const path = require("path");
4
4
  try {
5
5
  console.log("Adding checksum scripts to package.json");
6
6
  const packageJsonPath = path.resolve(__dirname, "../../../package.json");
7
+ if (!fs.existsSync(packageJsonPath)) {
8
+ console.log("No package.json found, will not add checksum script");
9
+ process.exit(1);
10
+ }
7
11
  const packageJson = JSON.parse(fs.readFileSync(packageJsonPath));
8
12
 
9
13
  // verify that the package.json has a scripts section