@s-ui/bundler 9.39.0-typescript.106 → 9.39.0-typescript.108

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.106",
3
+ "version": "9.39.0-typescript.108",
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": "echo \"This is the postinstall of the SUIBundler\"",
10
+ "postinstall": "node ./scripts/postinstall.js",
11
11
  "test": "echo \"Error: no test specified\" && exit 1"
12
12
  },
13
13
  "keywords": [],
@@ -5,6 +5,7 @@ const fs = require('fs-extra')
5
5
  const path = require('path')
6
6
  const {writeFile} = require('@s-ui/helpers/file.js')
7
7
 
8
+ const {INIT_CWD} = process.env
8
9
  const tsConfigTemplate = `\
9
10
  {
10
11
  "extends": "@s-ui/bundler/tsconfig.json",
@@ -15,7 +16,7 @@ const tsConfigTemplate = `\
15
16
  }`
16
17
 
17
18
  const md5 = str => crypto.createHash('md5').update(str).digest('hex')
18
- const TS_CONFIG_PATH = path.join(process.cwd(), 'tsconfig.json')
19
+ const TS_CONFIG_PATH = path.join(INIT_CWD, 'tsconfig.json')
19
20
 
20
21
  const shouldGenerateTSConfig = () => {
21
22
  try {