@s-ui/bundler 9.39.0-typescript.103 → 9.39.0-typescript.105

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,13 +1,13 @@
1
1
  {
2
2
  "name": "@s-ui/bundler",
3
- "version": "9.39.0-typescript.103",
3
+ "version": "9.39.0-typescript.105",
4
4
  "description": "Config-free bundler for ES6 React apps.",
5
5
  "bin": {
6
6
  "sui-bundler": "./bin/sui-bundler.js"
7
7
  },
8
8
  "main": "./bin/sui-bundler.js",
9
9
  "scripts": {
10
- "postinstall": "./scripts/postinstall.js",
10
+ "postinstall": "node ./scripts/postinstall.js",
11
11
  "test": "echo \"Error: no test specified\" && exit 1"
12
12
  },
13
13
  "keywords": [],
@@ -29,7 +29,16 @@ const shouldGenerateTSConfig = () => {
29
29
  }
30
30
 
31
31
  async function main() {
32
- if (!shouldGenerateTSConfig()) process.exit(0)
33
- writeFile(TS_CONFIG_PATH, tsConfigTemplate)
32
+ console.log(
33
+ '🔍 [sui-bundler postinstall] Checking if tsconfig.json is up to date...'
34
+ )
35
+ if (!shouldGenerateTSConfig()) {
36
+ console.log('✅ [sui-bundler postinstall] tsconfig.json is up to date')
37
+ process.exit(0)
38
+ }
39
+ await writeFile(TS_CONFIG_PATH, tsConfigTemplate)
40
+ console.log(
41
+ '❌ [sui-bundler postinstall] tsconfig.json was not up to date, so we updated it'
42
+ )
34
43
  }
35
44
  main()