@gravity-ui/app-builder 0.6.3 → 0.6.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.6.4](https://github.com/gravity-ui/app-builder/compare/v0.6.3...v0.6.4) (2023-08-04)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **build-library:** correctly write esm code to file ([#62](https://github.com/gravity-ui/app-builder/issues/62)) ([b1f1be2](https://github.com/gravity-ui/app-builder/commit/b1f1be2dfd93d79b54ee8c99e99cea945c0b6f16)), closes [#61](https://github.com/gravity-ui/app-builder/issues/61)
9
+
3
10
  ## [0.6.3](https://github.com/gravity-ui/app-builder/compare/v0.6.2...v0.6.3) (2023-07-31)
4
11
 
5
12
 
@@ -204,7 +204,8 @@ function buildLibrary(config) {
204
204
  }
205
205
  else if (transformed) {
206
206
  const code = transformed.code ?? '';
207
- fs_1.default.writeFile(compiledFile, (code.length ? '\n' : '') + sourcemapUrl, errorHandlerFactory(`Source compilation has failed on writing ${compiledFile}`));
207
+ const esmCode = code + (code.length ? '\n' : '') + sourcemapUrl;
208
+ fs_1.default.writeFile(compiledFile, esmCode, errorHandlerFactory(`Source compilation has failed on writing ${compiledFile}`));
208
209
  if (transformed.map) {
209
210
  fs_1.default.writeFile(sourcemapFile, JSON.stringify(transformed.map), errorHandlerFactory(`Source compilation has failed on writing ${sourcemapFile}`));
210
211
  }
@@ -141,8 +141,8 @@ export interface ClientConfig {
141
141
  */
142
142
  newJsxTransform?: boolean;
143
143
  /**
144
- * @deprecated
145
- * */
144
+ * @deprecated use `forkTsChecker: false` instead
145
+ */
146
146
  disableForkTsChecker?: boolean;
147
147
  forkTsChecker?: false | ForkTsCheckerWebpackPluginOptions;
148
148
  disableSourceMapGeneration?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Develop and build your React client-server projects, powered by typescript and webpack",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",