stonyx 0.2.3-beta.7 → 0.2.3-beta.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stonyx",
3
- "version": "0.2.3-beta.7",
3
+ "version": "0.2.3-beta.8",
4
4
  "description": "Base stonyx framework module",
5
5
  "main": "main.js",
6
6
  "type": "module",
@@ -1,4 +1,8 @@
1
- import { copyFile, createDirectory } from '@stonyx/utils/file';
1
+ // Skip postinstall for global installations
2
+ const isGlobal = !process.env.INIT_CWD || process.env.npm_config_global === 'true';
3
+ if (isGlobal) process.exit(0);
4
+
5
+ const { copyFile, createDirectory } = await import('@stonyx/utils/file');
2
6
 
3
7
  const projectDir = process.env.INIT_CWD;
4
8
  const configDir = `${projectDir}/config`;