bajo 1.0.1 → 1.0.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.
@@ -1,4 +1,4 @@
1
- import globalModulesPath from 'global-modules-path'
1
+ import getGlobalPath from 'get-global-path'
2
2
  import resolvePath from './resolve-path.js'
3
3
  import { dropRight } from 'lodash-es'
4
4
  import fs from 'fs-extra'
@@ -6,7 +6,7 @@ import fs from 'fs-extra'
6
6
  function getGlobalModuleDir (pkgName, silent = true) {
7
7
  let nodeModulesDir = process.env.BAJO_GLOBAL_MODULE_DIR
8
8
  if (!nodeModulesDir) {
9
- const npmPath = globalModulesPath.getPath('npm')
9
+ const npmPath = getGlobalPath('npm')
10
10
  if (!npmPath) {
11
11
  if (silent) return
12
12
  throw this.error('Can\'t locate npm global module directory', { code: 'BAJO_CANT_LOCATE_NPM_GLOBAL_DIR' })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bajo",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A framework to build a giant monstrous app rapidly",
5
5
  "main": "boot/index.js",
6
6
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  "fast-glob": "^3.3.3",
36
36
  "flat": "^6.0.1",
37
37
  "fs-extra": "^11.2.0",
38
- "global-modules-path": "^3.0.0",
38
+ "get-global-path": "^0.0.1",
39
39
  "lodash-es": "^4.17.21",
40
40
  "ms": "^2.1.3",
41
41
  "nanoid": "^5.0.9",