mango-cms 0.1.11 → 0.1.12

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.
package/cli.js CHANGED
@@ -182,7 +182,6 @@ program
182
182
  stdio: 'inherit',
183
183
  env: {
184
184
  ...process.env,
185
- NODE_PATH: path.resolve(cmsPackagePath, 'node_modules'),
186
185
  MANGO_ROOT: cmsPackagePath,
187
186
  PROJECT_ROOT: userProjectRoot
188
187
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mango-cms",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "main": "index.js",
5
5
  "author": "Colton Neifert",
6
6
  "license": "ISC",
@@ -8,7 +8,7 @@
8
8
  "mango": "./cli.js"
9
9
  },
10
10
  "scripts": {
11
- "postinstall": "npm rebuild --force sharp"
11
+ "postinstall": ""
12
12
  },
13
13
  "dependencies": {
14
14
  "@aws-sdk/client-s3": "^3.423.0",
package/webpack.config.js CHANGED
@@ -19,14 +19,6 @@ module.exports = {
19
19
  // Config folder is in the user's project root
20
20
  '@config': path.resolve(userProjectRoot, 'config'),
21
21
  },
22
- modules: [
23
- // Look for modules in mango's node_modules first
24
- path.resolve(mangoRoot, 'node_modules'),
25
- // Then look in the user's project node_modules
26
- path.resolve(userProjectRoot, 'node_modules'),
27
- // Finally fallback to the standard node resolution
28
- 'node_modules'
29
- ]
30
22
  },
31
23
  devtool: 'inline-source-map',
32
24
  entry: {
@@ -46,7 +38,7 @@ module.exports = {
46
38
  nodeExternals(),
47
39
  // Also check for externals in the mango package
48
40
  nodeExternals({
49
- modulesDir: path.resolve(mangoRoot, 'node_modules')
41
+ modulesDir: path.resolve(userProjectRoot, 'node_modules')
50
42
  })
51
43
  ],
52
44
  };
Binary file