windmill-components 1.493.6 → 1.493.7

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": "windmill-components",
3
- "version": "1.493.6",
3
+ "version": "1.493.7",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",
@@ -1,7 +1,7 @@
1
1
  // Check if this script is being run from the package root
2
- const isRootInstall = process.cwd() + '/scripts' === __dirname
2
+ const isTopLevel = !process.env.npm_config_global && process.env.INIT_CWD === process.cwd()
3
3
 
4
- if (isRootInstall) {
4
+ if (isTopLevel) {
5
5
  console.log('Running postinstall: direct install')
6
6
  // Your postinstall logic here
7
7
  } else {