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