@webiny/build-tools 6.1.0-beta.3 → 6.2.0-beta.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/build-tools",
3
- "version": "6.1.0-beta.3",
3
+ "version": "6.2.0-beta.0",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "description": "A collection of utilities for Webiny project.",
@@ -19,36 +19,35 @@
19
19
  "@babel/preset-react": "7.28.5",
20
20
  "@babel/preset-typescript": "7.28.5",
21
21
  "@babel/runtime": "7.29.2",
22
- "@rsbuild/core": "1.7.4",
22
+ "@rsbuild/core": "1.7.5",
23
23
  "@rsbuild/plugin-react": "1.4.6",
24
24
  "@rsbuild/plugin-sass": "1.5.1",
25
25
  "@rsbuild/plugin-svgr": "1.3.1",
26
26
  "@rsbuild/plugin-type-check": "1.3.4",
27
- "@rspack/core": "1.7.10",
27
+ "@rspack/core": "1.7.11",
28
28
  "@svgr/webpack": "8.1.0",
29
- "@swc/plugin-emotion": "14.7.0",
29
+ "@swc/plugin-emotion": "14.8.0",
30
30
  "@tailwindcss/postcss": "4.2.2",
31
31
  "@types/webpack-env": "1.18.8",
32
32
  "chalk": "5.6.2",
33
33
  "chokidar": "5.0.0",
34
34
  "css-loader": "7.1.4",
35
- "eslint": "10.1.0",
35
+ "eslint": "10.2.0",
36
36
  "fast-glob": "3.3.3",
37
37
  "find-up": "8.0.0",
38
38
  "fs-extra": "11.3.4",
39
39
  "get-yarn-workspaces": "1.0.2",
40
- "lodash": "4.17.23",
40
+ "load-json-file": "7.0.1",
41
+ "lodash": "4.18.1",
41
42
  "postcss-loader": "8.2.1",
42
- "process": "0.11.10",
43
43
  "raw-loader": "4.0.2",
44
- "react-dom": "18.2.0",
44
+ "react-dom": "18.3.1",
45
45
  "react-refresh": "0.18.0",
46
- "read-json-sync": "2.0.1",
47
46
  "rimraf": "6.1.3",
48
- "sass": "1.98.0",
47
+ "sass": "1.99.0",
49
48
  "sass-loader": "16.0.7",
50
49
  "style-loader": "4.0.0",
51
- "ts-morph": "27.0.2",
50
+ "ts-morph": "28.0.0",
52
51
  "tsx": "4.21.0",
53
52
  "typescript": "5.9.3",
54
53
  "url-loader": "4.1.1",
@@ -75,7 +74,6 @@
75
74
  "style-loader",
76
75
  "typescript",
77
76
  "eslint",
78
- "process",
79
77
  "sass-loader",
80
78
  "sass",
81
79
  "bufferutil",
@@ -89,5 +87,5 @@
89
87
  "access": "public",
90
88
  "directory": "."
91
89
  },
92
- "gitHead": "65e0ac1889b3392c99b8cac6cde508e1e831c715"
90
+ "gitHead": "3d3148358b6febbc857371930871743bec3b3939"
93
91
  }
@@ -1,4 +1,4 @@
1
- import readJsonSync from "read-json-sync";
1
+ import { loadJsonFileSync } from "load-json-file";
2
2
 
3
3
  export default ({ path, esm }) => {
4
4
  return {
@@ -7,14 +7,14 @@ export default ({ path, esm }) => {
7
7
  "@babel/preset-env",
8
8
  {
9
9
  targets: {
10
- node: "18"
10
+ // nodejs - to easily find this with search. there is a lot of "node" in the code
11
+ node: 24
11
12
  },
12
13
  modules: esm ? false : "auto",
13
14
  exclude: [
14
15
  "transform-typeof-symbol",
15
16
  "@babel/plugin-proposal-optional-chaining",
16
17
  "@babel/plugin-proposal-nullish-coalescing-operator",
17
- "@babel/plugin-proposal-class-properties",
18
18
  "@babel/plugin-transform-async-to-generator",
19
19
  "@babel/plugin-transform-regenerator",
20
20
  "@babel/plugin-proposal-dynamic-import"
@@ -28,7 +28,8 @@ export default ({ path, esm }) => {
28
28
  "@babel/plugin-transform-runtime",
29
29
  {
30
30
  useESModules: !!esm,
31
- version: readJsonSync(require.resolve("@babel/runtime/package.json")).version
31
+ version: loadJsonFileSync(require.resolve("@babel/runtime/package.json"))
32
+ .version
32
33
  }
33
34
  ],
34
35
  [
@@ -1,6 +1,5 @@
1
1
  // We'll use this class once the package is converted to TS!
2
-
3
- import readJson from "read-json-sync";
2
+ import { loadJsonFileSync } from "load-json-file";
4
3
  import { findUp } from "find-up";
5
4
 
6
5
  export class PackageJson {
@@ -8,7 +7,7 @@ export class PackageJson {
8
7
  private readonly json: Record<string, any>;
9
8
 
10
9
  static fromFile(filePath: string) {
11
- return new PackageJson(filePath, readJson(filePath));
10
+ return new PackageJson(filePath, loadJsonFileSync(filePath));
12
11
  }
13
12
 
14
13
  static async findClosest(fromPath: string) {
@@ -1,4 +1,4 @@
1
- import readJson from "read-json-sync";
1
+ import { loadJsonFileSync } from "load-json-file";
2
2
  import { findUp } from "find-up";
3
3
 
4
4
  export class PackageJson {
@@ -6,7 +6,7 @@ export class PackageJson {
6
6
  json;
7
7
 
8
8
  static fromFile(filePath) {
9
- return new PackageJson(filePath, readJson(filePath));
9
+ return new PackageJson(filePath, loadJsonFileSync(filePath));
10
10
  }
11
11
 
12
12
  static async findClosest(fromPath) {
@@ -11,7 +11,7 @@ import path from "path";
11
11
  import get from "lodash/get.js";
12
12
  import fs from "fs-extra";
13
13
  import * as rimraf from "rimraf";
14
- import readJsonSync from "read-json-sync";
14
+ import { loadJsonFileSync } from "load-json-file";
15
15
 
16
16
  async function symlink(src, dest) {
17
17
  if (process.platform !== "win32") {
@@ -74,7 +74,7 @@ export const linkWorkspaces = async ({ whitelist, blacklist } = defaults) => {
74
74
  });
75
75
 
76
76
  const lernaJson = path.resolve("lerna.json");
77
- const lerna = fs.existsSync(lernaJson) ? readJsonSync(lernaJson) : null;
77
+ const lerna = fs.existsSync(lernaJson) ? loadJsonFileSync(lernaJson) : null;
78
78
 
79
79
  for (let i = 0; i < packages.length; i++) {
80
80
  const packageJson = path.resolve(packages[i], "package.json");