@gravity-ui/app-builder 0.42.1 → 0.43.1-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/README.md CHANGED
File without changes
package/dist/cli.js CHANGED
File without changes
@@ -1,4 +1,4 @@
1
1
  import WebpackDevServer from 'webpack-dev-server';
2
2
  import { RspackDevServer } from '@rspack/dev-server';
3
3
  import type { NormalizedServiceConfig } from '../../common/models';
4
- export declare function watchClientCompilation(config: NormalizedServiceConfig, onManifestReady: () => void): Promise<WebpackDevServer<import("express").Application, import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>> | RspackDevServer<import("express").Application, import("http").Server<typeof import("http").IncomingMessage, typeof import("http").ServerResponse>>>;
4
+ export declare function watchClientCompilation(config: NormalizedServiceConfig, onManifestReady: () => void): Promise<WebpackDevServer | RspackDevServer>;
@@ -87,6 +87,7 @@ class ControllableScript {
87
87
  // Ref: https://nodejs.org/api/child_process.html#child_process_subprocess_send_message_sendhandle_options_callback
88
88
  });
89
89
  }
90
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
90
91
  }
91
92
  catch (err) {
92
93
  // Ignore error if process has crashed or already quit.
@@ -34,6 +34,7 @@ function randomChars(howMany) {
34
34
  // make sure that we do not fail because we ran out of entropy
35
35
  try {
36
36
  rnd = crypto.randomBytes(howMany);
37
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
37
38
  }
38
39
  catch (e) {
39
40
  // eslint-disable-next-line security/detect-pseudoRandomBytes
@@ -54,6 +55,7 @@ function tmpNameSync(tmpDir, retries = 3) {
54
55
  const name = generateTmpName(tmpDir);
55
56
  try {
56
57
  fs.statSync(name);
58
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
57
59
  }
58
60
  catch (e) {
59
61
  return name;
@@ -1,8 +1,3 @@
1
- declare const _default: (api: object, options: Record<string, any> | null | undefined, dirname: string) => {
2
- visitor: {
3
- ImportDeclaration(this: import("@babel/core").PluginPass, path: import("@babel/traverse").NodePath<import("@babel/types").ImportDeclaration>): void;
4
- ExportNamedDeclaration(this: import("@babel/core").PluginPass, path: import("@babel/traverse").NodePath<import("@babel/types").ExportNamedDeclaration>): void;
5
- CallExpression(this: import("@babel/core").PluginPass, path: import("@babel/traverse").NodePath<import("@babel/types").CallExpression>): void;
6
- };
7
- };
1
+ import type { PluginObj } from '@babel/core';
2
+ declare const _default: (api: object, options: Record<string, any> | null | undefined, dirname: string) => PluginObj<import("@babel/core").PluginPass>;
8
3
  export default _default;
@@ -7,6 +7,6 @@ export interface GetSwcOptionsParams {
7
7
  publicPath: string;
8
8
  }
9
9
  export declare function getSwcOptions({ projectPath, filename, additionalPaths, exclude, publicPath, }: GetSwcOptionsParams): {
10
- swcOptions: import("@swc/types").Options;
10
+ swcOptions: import("@swc/core").Options;
11
11
  directoriesToCompile: string[];
12
12
  };
@@ -74,6 +74,7 @@ function readPackagesNames(dirName) {
74
74
  return fs.readdirSync(path.join(dirName, module)).map(function (scopedMod) {
75
75
  return module + '/' + scopedMod;
76
76
  });
77
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
77
78
  }
78
79
  catch (e) {
79
80
  return [module];
@@ -83,6 +84,7 @@ function readPackagesNames(dirName) {
83
84
  })
84
85
  .flat()
85
86
  .filter((v) => v !== undefined);
87
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
86
88
  }
87
89
  catch (e) {
88
90
  return [];
@@ -44,6 +44,7 @@ function createCli(argv) {
44
44
  .alias('v', 'version');
45
45
  try {
46
46
  cli.version('version', 'Show the version of the app-builder CLI package in the current project', getVersionInfo());
47
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
47
48
  }
48
49
  catch (e) {
49
50
  // ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/app-builder",
3
- "version": "0.42.1",
3
+ "version": "0.43.1-beta.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",
@@ -43,20 +43,6 @@
43
43
  "url": "https://github.com/gravity-ui/app-builder/issues"
44
44
  },
45
45
  "homepage": "https://github.com/gravity-ui/app-builder#readme",
46
- "scripts": {
47
- "prepare": "husky",
48
- "lint": "run-p lint:*",
49
- "lint:js": "eslint --ext .js,.ts --report-unused-disable-directives .",
50
- "lint:other": "npm run prettier -- --check",
51
- "prettier": "prettier '**/*.{md,yaml,yml,json}'",
52
- "typecheck": "tsc --noEmit",
53
- "test": "jest",
54
- "watch": "tsc -p tsconfig.production.json --watch",
55
- "build": "npm run build:clean && npm run build:compile",
56
- "build:compile": "tsc -p tsconfig.production.json",
57
- "build:clean": "rimraf dist",
58
- "prepublishOnly": "npm run build"
59
- },
60
46
  "dependencies": {
61
47
  "@aws-sdk/client-s3": "^3.353.0",
62
48
  "@babel/core": "^7.26.0",
@@ -73,9 +59,9 @@
73
59
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.15",
74
60
  "@rsdoctor/rspack-plugin": "^1.0.2",
75
61
  "@rsdoctor/webpack-plugin": "^1.0.2",
76
- "@rspack/core": "1.6.8",
77
- "@rspack/dev-server": "^1.1.5",
78
- "@rspack/plugin-react-refresh": "^1.6.0",
62
+ "@rspack/core": "1.7.11",
63
+ "@rspack/dev-server": "^1.2.1",
64
+ "@rspack/plugin-react-refresh": "^1.6.1",
79
65
  "@statoscope/stats": "^5.28.1",
80
66
  "@statoscope/stats-extension-compressed": "^5.28.1",
81
67
  "@statoscope/webpack-model": "^5.29.0",
@@ -84,8 +70,8 @@
84
70
  "@svgr/plugin-jsx": "^8.1.0",
85
71
  "@svgr/webpack": "^8.1.0",
86
72
  "@swc/cli": "0.7.10",
87
- "@swc/core": "1.14.0",
88
- "@swc/plugin-transform-imports": "10.0.0",
73
+ "@swc/core": "1.15.5",
74
+ "@swc/plugin-transform-imports": "12.0.1",
89
75
  "babel-loader": "^9.2.1",
90
76
  "babel-plugin-import": "^1.13.8",
91
77
  "babel-plugin-inline-react-svg": "^2.0.2",
@@ -125,9 +111,9 @@
125
111
  "react-refresh": "^0.14.2",
126
112
  "resolve-url-loader": "^5.0.0",
127
113
  "rimraf": "^5.0.7",
128
- "rspack-manifest-plugin": "^5.0.3",
129
- "sass": "^1.79.0",
130
- "sass-loader": "^16.0.0",
114
+ "rspack-manifest-plugin": "^5.2.1",
115
+ "sass": "^1.99.0",
116
+ "sass-loader": "^16.0.7",
131
117
  "semver": "^7.6.3",
132
118
  "signal-exit": "^4.1.0",
133
119
  "source-map-loader": "^5.0.0",
@@ -136,8 +122,7 @@
136
122
  "svgo": "^3.3.2",
137
123
  "swc-loader": "^0.2.6",
138
124
  "terser-webpack-plugin": "5.3.10",
139
- "ts-checker-rspack-plugin": "^1.1.1",
140
- "ts-node": "10.9.2",
125
+ "ts-checker-rspack-plugin": "^1.3.0",
141
126
  "tsconfig-to-swcconfig": "^2.8.1",
142
127
  "tslib": "^2.6.2",
143
128
  "typescript": "~5.6.0",
@@ -151,15 +136,18 @@
151
136
  "yargs": "^17.7.2"
152
137
  },
153
138
  "devDependencies": {
139
+ "@babel/types": "^7.29.0",
154
140
  "@commitlint/cli": "^19.5.0",
155
141
  "@commitlint/config-conventional": "^19.5.0",
156
142
  "@gravity-ui/eslint-config": "^3.2.0",
157
143
  "@gravity-ui/prettier-config": "^1.1.0",
158
144
  "@gravity-ui/tsconfig": "^1.0.0",
159
145
  "@sentry/webpack-plugin": "^2.7.1",
146
+ "@types/babel__core": "^7.20.5",
160
147
  "@types/babel__helper-plugin-utils": "^7.10.3",
161
148
  "@types/circular-dependency-plugin": "^5.0.8",
162
149
  "@types/common-tags": "^1.8.4",
150
+ "@types/express": "^5.0.6",
163
151
  "@types/fs-extra": "^11.0.4",
164
152
  "@types/jest": "^29.5.2",
165
153
  "@types/mime-types": "^2.1.4",
@@ -205,5 +193,18 @@
205
193
  "*.{md,yaml,yml,json}": [
206
194
  "prettier --write"
207
195
  ]
196
+ },
197
+ "scripts": {
198
+ "install:global": "npm install -g pnpm@10.17.1",
199
+ "lint": "run-p lint:*",
200
+ "lint:js": "eslint --ext .js,.ts --report-unused-disable-directives .",
201
+ "lint:other": "pnpm run prettier --check",
202
+ "prettier": "prettier '**/*.{md,yaml,yml,json}'",
203
+ "typecheck": "tsc --noEmit",
204
+ "test": "jest",
205
+ "watch": "tsc -p tsconfig.production.json --watch",
206
+ "build": "pnpm run build:clean && pnpm run build:compile",
207
+ "build:compile": "tsc -p tsconfig.production.json",
208
+ "build:clean": "rimraf dist"
208
209
  }
209
- }
210
+ }