@checksum-ai/runtime 1.0.13 → 1.0.15

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 +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checksum-ai/runtime",
3
- "version": "1.0.13",
3
+ "version": "1.0.15",
4
4
  "description": "Checksum.ai test runtime",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/postinstall.js CHANGED
@@ -1,10 +1,9 @@
1
- const childProcess = require("child_process");
2
1
  const fs = require("fs");
3
2
  const path = require("path");
4
3
 
5
4
  try {
6
5
  console.log("Adding checksum scripts to package.json");
7
- const packageJsonPath = path.join(process.cwd(), "package.json");
6
+ const packageJsonPath = path.resolve(__dirname, "../../../package.json");
8
7
  const packageJson = JSON.parse(fs.readFileSync(packageJsonPath));
9
8
 
10
9
  // verify that the package.json has a scripts section