@gravity-ui/app-builder 0.9.2 → 0.9.4
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.
|
@@ -12,7 +12,15 @@ function buildServer(config) {
|
|
|
12
12
|
(0, utils_1.createRunFolder)();
|
|
13
13
|
return new Promise((resolve, reject) => {
|
|
14
14
|
const build = new controllable_script_1.ControllableScript(`
|
|
15
|
-
|
|
15
|
+
let ts;
|
|
16
|
+
try {
|
|
17
|
+
ts = require('typescript');
|
|
18
|
+
} catch (e) {
|
|
19
|
+
if (e.code !== 'MODULE_NOT_FOUND') {
|
|
20
|
+
throw e;
|
|
21
|
+
}
|
|
22
|
+
ts = require(${JSON.stringify(require.resolve('typescript'))});
|
|
23
|
+
}
|
|
16
24
|
const {Logger} = require(${JSON.stringify(require.resolve('../../../common/logger'))});
|
|
17
25
|
const {compile} = require(${JSON.stringify(require.resolve('../../../common/typescript/compile'))});
|
|
18
26
|
|
|
@@ -37,7 +37,15 @@ function watchServerCompilation(config) {
|
|
|
37
37
|
rimraf_1.rimraf.sync(serverPath);
|
|
38
38
|
(0, utils_1.createRunFolder)();
|
|
39
39
|
const build = new controllable_script_1.ControllableScript(`
|
|
40
|
-
|
|
40
|
+
let ts;
|
|
41
|
+
try {
|
|
42
|
+
ts = require('typescript');
|
|
43
|
+
} catch (e) {
|
|
44
|
+
if (e.code !== 'MODULE_NOT_FOUND') {
|
|
45
|
+
throw e;
|
|
46
|
+
}
|
|
47
|
+
ts = require(${JSON.stringify(require.resolve('typescript'))});
|
|
48
|
+
}
|
|
41
49
|
const {Logger} = require(${JSON.stringify(require.resolve('../../common/logger'))});
|
|
42
50
|
const {watch} = require(${JSON.stringify(require.resolve('../../common/typescript/watch'))});
|
|
43
51
|
|
|
@@ -50,7 +58,7 @@ function watchServerCompilation(config) {
|
|
|
50
58
|
onAfterFilesEmitted: () => {
|
|
51
59
|
process.send({type: 'Emitted'});
|
|
52
60
|
},
|
|
53
|
-
enableSourceMap:
|
|
61
|
+
enableSourceMap: true
|
|
54
62
|
}
|
|
55
63
|
);
|
|
56
64
|
`, null);
|
|
@@ -24,7 +24,10 @@ module.exports = function (_context, options = {}) {
|
|
|
24
24
|
* Can be removed once the issue is fixed and released.
|
|
25
25
|
* @see https://github.com/babel/babel/issues/14289
|
|
26
26
|
*/
|
|
27
|
-
plugins: [
|
|
27
|
+
plugins: [
|
|
28
|
+
require.resolve('@babel/plugin-transform-private-methods'),
|
|
29
|
+
require.resolve('@babel/plugin-transform-class-properties'),
|
|
30
|
+
],
|
|
28
31
|
}),
|
|
29
32
|
],
|
|
30
33
|
// Latest stable ECMAScript features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravity-ui/app-builder",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4",
|
|
4
4
|
"description": "Develop and build your React client-server projects, powered by typescript and webpack",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@babel/plugin-transform-class-properties": "^7.22.5",
|
|
64
64
|
"@babel/plugin-transform-dynamic-import": "^7.22.0",
|
|
65
65
|
"@babel/plugin-transform-modules-commonjs": "^7.23.4",
|
|
66
|
+
"@babel/plugin-transform-private-methods": "^7.24.1",
|
|
66
67
|
"@babel/plugin-transform-runtime": "^7.22.0",
|
|
67
68
|
"@babel/preset-env": "^7.22.0",
|
|
68
69
|
"@babel/preset-react": "^7.22.0",
|