@gravity-ui/app-builder 0.26.1 → 0.27.0

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.
@@ -181,6 +181,7 @@ const svgoPreset = {
181
181
  function buildLibrary(config) {
182
182
  const internalGlobs = config.lib?.internalDirs?.map((dir) => `!${dir}/**/*`) ?? [];
183
183
  rimraf_1.rimraf.sync(paths_1.default.libBuild);
184
+ const tsConfigFilePath = path.resolve(paths_1.default.app, 'tsconfig.publish.json');
184
185
  // sources compilation
185
186
  const sourceStream = (0, fast_glob_1.globStream)(['**/*.{js,jsx,ts,tsx}', '!**/*.d.ts', ...internalGlobs], {
186
187
  cwd: paths_1.default.src,
@@ -216,6 +217,12 @@ function buildLibrary(config) {
216
217
  camel2DashComponentName: false,
217
218
  },
218
219
  ],
220
+ [
221
+ require.resolve('babel-plugin-tsconfig-paths-module-resolver'),
222
+ {
223
+ tsconfig: tsConfigFilePath,
224
+ },
225
+ ],
219
226
  require.resolve('./babel-plugin-replace-paths'),
220
227
  ],
221
228
  sourceMaps: true,
@@ -237,10 +244,9 @@ function buildLibrary(config) {
237
244
  });
238
245
  });
239
246
  // type definitions compilation and type checking
240
- const projectFilePath = path.resolve(paths_1.default.app, 'tsconfig.publish.json');
241
247
  const tscExec = path.resolve(paths_1.default.appNodeModules, 'typescript/bin/tsc');
242
248
  // eslint-disable-next-line security/detect-child-process
243
- childProcess.exec(`${tscExec} -p ${projectFilePath} --declaration --emitDeclarationOnly --outDir build/esm`, (error, stdout, stderr) => {
249
+ childProcess.exec(`${tscExec} -p ${tsConfigFilePath} --declaration --emitDeclarationOnly --outDir build/esm`, (error, stdout, stderr) => {
244
250
  logger_1.default.message(stdout);
245
251
  logger_1.default.error(stderr);
246
252
  if (!error && !stderr) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.26.1",
3
+ "version": "0.27.0",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -75,10 +75,10 @@
75
75
  "@rspack/core": "1.2.8",
76
76
  "@rspack/dev-server": "^1.0.10",
77
77
  "@rspack/plugin-react-refresh": "^1.0.1",
78
- "@statoscope/webpack-plugin": "^5.29.0",
79
78
  "@statoscope/stats": "^5.28.1",
80
79
  "@statoscope/stats-extension-compressed": "^5.28.1",
81
80
  "@statoscope/webpack-model": "^5.29.0",
81
+ "@statoscope/webpack-plugin": "^5.29.0",
82
82
  "@svgr/core": "^8.1.0",
83
83
  "@svgr/plugin-jsx": "^8.1.0",
84
84
  "@svgr/webpack": "^8.1.0",
@@ -88,6 +88,7 @@
88
88
  "babel-plugin-import": "^1.13.8",
89
89
  "babel-plugin-inline-react-svg": "^2.0.2",
90
90
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
91
+ "babel-plugin-tsconfig-paths-module-resolver": "^1.0.4",
91
92
  "browserslist": "^4.24.0",
92
93
  "chalk": "^4.1.2",
93
94
  "circular-dependency-plugin": "^5.2.2",