windmill-components 1.493.4 → 1.493.6

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.4",
3
+ "version": "1.493.6",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build",
@@ -1,3 +1,14 @@
1
+ // Check if this script is being run from the package root
2
+ const isRootInstall = process.cwd() + '/scripts' === __dirname
3
+
4
+ if (isRootInstall) {
5
+ console.log('Running postinstall: direct install')
6
+ // Your postinstall logic here
7
+ } else {
8
+ console.log('Skipping postinstall: installed as dependency')
9
+ process.exit(0)
10
+ }
11
+
1
12
  import path from 'path'
2
13
  import fs from 'fs'
3
14
 
@@ -18,17 +29,6 @@ const response = await fetch(tarUrl)
18
29
  const buffer = await response.arrayBuffer()
19
30
  await fs.promises.writeFile(outputTarPath, Buffer.from(buffer))
20
31
 
21
- // Check if this script is being run from the package root
22
- const isRootInstall = process.cwd() + '/scripts' === __dirname
23
-
24
- if (isRootInstall) {
25
- console.log('Running postinstall: direct install')
26
- // Your postinstall logic here
27
- } else {
28
- console.log('Skipping postinstall: installed as dependency')
29
- process.exit(0)
30
- }
31
-
32
32
  // Create extract directory if it doesn't exist
33
33
  try {
34
34
  await fs.promises.mkdir(extractTo, { recursive: true })