make-mp-data 2.0.0 → 2.0.1

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.
@@ -13,7 +13,8 @@
13
13
  "Bash(find:*)",
14
14
  "Bash(npm test:*)",
15
15
  "Bash(npm run test:*)",
16
- "Bash(npx tsc:*)"
16
+ "Bash(npx tsc:*)",
17
+ "Bash(npm start)"
17
18
  ],
18
19
  "deny": []
19
20
  }
package/lib/cli/cli.js CHANGED
@@ -1,9 +1,13 @@
1
1
  import yargs from 'yargs';
2
2
  import fs from 'fs';
3
+ import path from 'path';
4
+ import { fileURLToPath } from 'url';
3
5
 
4
6
  /** @typedef {import('../../types').Dungeon} Config */
5
7
 
6
- const { version } = JSON.parse(fs.readFileSync('package.json', 'utf8'));
8
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
9
+ const packageJsonPath = path.join(__dirname, '../../package.json');
10
+ const { version } = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
7
11
 
8
12
  const hero = String.raw`
9
13
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "make-mp-data",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "builds all mixpanel primitives for a given project",
5
5
  "type": "module",
6
6
  "main": "index.js",