@shuvi/toolpack 0.0.1-rc.36 → 0.0.1-rc.37

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.
@@ -187,7 +187,8 @@ function baseWebpackChain({ dev, projectRoot, srcDirs, mediaFilename, name, buil
187
187
  const stringifiedEnvs = Object.entries(Object.assign(Object.assign({}, shuviConfigEnv), shuviPublicEnv)).reduce((prev, [key, value]) => {
188
188
  return `${prev}|${key}=${value}`;
189
189
  }, '');
190
- const SHUVI_VERSION = require('shuvi/package.json').version;
190
+ const PACKAGE_JSON = path_1.default.resolve(__dirname, '../../../package.json');
191
+ const SHUVI_VERSION = require(PACKAGE_JSON).version;
191
192
  return {
192
193
  cacheDirectory: path_1.default.resolve(`node_modules/.cache/webpack/${projectHash}`),
193
194
  type: 'filesystem',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shuvi/toolpack",
3
- "version": "0.0.1-rc.36",
3
+ "version": "0.0.1-rc.37",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/shuvijs/shuvi.git",
@@ -11,11 +11,6 @@
11
11
  "files": [
12
12
  "lib"
13
13
  ],
14
- "scripts": {
15
- "dev": "tsc -p tsconfig.build.json -w",
16
- "prebuild": "rimraf lib",
17
- "build": "tsc -p tsconfig.build.json"
18
- },
19
14
  "engines": {
20
15
  "node": ">= 12.0.0"
21
16
  },
@@ -33,9 +28,9 @@
33
28
  "@babel/preset-react": "7.10.1",
34
29
  "@babel/preset-typescript": "7.12.7",
35
30
  "@babel/runtime": "7.12.5",
36
- "@shuvi/shared": "^0.0.1-rc.36",
37
- "@shuvi/types": "^0.0.1-rc.36",
38
- "@shuvi/utils": "^0.0.1-rc.36",
31
+ "@shuvi/shared": "0.0.1-rc.36",
32
+ "@shuvi/types": "0.0.1-rc.37",
33
+ "@shuvi/utils": "0.0.1-rc.36",
39
34
  "babel-loader": "8.2.2",
40
35
  "babel-plugin-syntax-jsx": "6.18.0",
41
36
  "babel-plugin-transform-define": "2.0.0",
@@ -71,6 +66,7 @@
71
66
  "@types/loader-utils": "2.0.1",
72
67
  "@types/mini-css-extract-plugin": "^1.2.2",
73
68
  "@types/terser-webpack-plugin": "5.0.2",
69
+ "@types/webpack": "4.41.0",
74
70
  "@types/webpack-bundle-analyzer": "^3.8.0",
75
71
  "memfs": "^3.1.2",
76
72
  "webpack": "5.36.0"
@@ -78,5 +74,9 @@
78
74
  "peerDependencies": {
79
75
  "webpack": "5.36.0"
80
76
  },
81
- "gitHead": "a36aade54a13fc419bf636875ce9e79cba39364a"
82
- }
77
+ "scripts": {
78
+ "dev": "tsc -p tsconfig.build.json -w",
79
+ "prebuild": "rimraf lib",
80
+ "build": "tsc -p tsconfig.build.json"
81
+ }
82
+ }