@nx/rsbuild 21.3.0 → 21.4.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/config-utils.d.ts CHANGED
@@ -3,3 +3,4 @@ export { addCopyAssets, addHtmlTemplatePath, addExperimentalSwcPlugin, } from '.
3
3
  export * as versions from './src/utils/versions';
4
4
  export { getRsbuildE2EWebServerInfo } from './src/utils/e2e-web-server-info-utils';
5
5
  export { hasRsbuildPlugin } from './src/utils/has-rsbuild-plugin';
6
+ //# sourceMappingURL=config-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-utils.d.ts","sourceRoot":"","sources":["../../../packages/rsbuild/config-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,wBAAwB,GACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC"}
package/generators.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export { configurationGenerator } from './src/generators/configuration/configuration';
2
2
  export { initGenerator } from './src/generators/init/init';
3
+ //# sourceMappingURL=generators.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generators.d.ts","sourceRoot":"","sources":["../../../packages/rsbuild/generators.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
package/index.d.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { createNodesV2, RsbuildPluginOptions } from './src/plugins/plugin';
2
+ //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../packages/rsbuild/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nx/rsbuild",
3
3
  "description": "The Nx Plugin for Rsbuild contains an Nx plugin, executors and utilities that support building applications using Rsbuild.",
4
- "version": "21.3.0",
4
+ "version": "21.4.0-beta.0",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -30,12 +30,15 @@
30
30
  "executors": "./executors.json",
31
31
  "dependencies": {
32
32
  "tslib": "^2.3.0",
33
- "@nx/devkit": "21.3.0",
34
- "@nx/js": "21.3.0",
33
+ "@nx/devkit": "21.4.0-beta.0",
34
+ "@nx/js": "21.4.0-beta.0",
35
35
  "@rsbuild/core": "1.1.8",
36
36
  "minimatch": "9.0.3",
37
37
  "@phenomnomnominal/tsquery": "~5.0.1"
38
38
  },
39
+ "devDependencies": {
40
+ "nx": "21.4.0-beta.0"
41
+ },
39
42
  "peerDependencies": {},
40
43
  "nx-migrations": {
41
44
  "migrations": "./migrations.json"
@@ -57,5 +60,5 @@
57
60
  "default": "./config-utils.js"
58
61
  }
59
62
  },
60
- "types": "./index.d.ts"
63
+ "types": "./src/index.d.ts"
61
64
  }
package/project.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "rsbuild",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "packages/rsbuild",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {
8
+ "outputs": ["{workspaceRoot}/dist/packages/rsbuild/README.md"],
9
+ "command": "node ./scripts/copy-readme.js rsbuild"
10
+ },
11
+ "legacy-post-build": {
12
+ "executor": "@nx/workspace-plugin:legacy-post-build",
13
+ "options": {
14
+ "tsConfig": "./tsconfig.lib.json",
15
+ "assets": [
16
+ {
17
+ "input": "packages/rsbuild",
18
+ "glob": "**/files/**",
19
+ "output": "/"
20
+ },
21
+ {
22
+ "input": "packages/rsbuild",
23
+ "glob": "**/files/**/.gitkeep",
24
+ "output": "/"
25
+ },
26
+ {
27
+ "input": "packages/rsbuild",
28
+ "glob": "**/*.json",
29
+ "ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"],
30
+ "output": "/"
31
+ },
32
+ {
33
+ "input": "packages/rsbuild",
34
+ "glob": "**/*.js",
35
+ "ignore": ["**/jest.config.js"],
36
+ "output": "/"
37
+ },
38
+ {
39
+ "input": "packages/rsbuild",
40
+ "glob": "**/*.d.ts",
41
+ "output": "/"
42
+ },
43
+ {
44
+ "input": "",
45
+ "glob": "LICENSE",
46
+ "output": "/"
47
+ }
48
+ ]
49
+ }
50
+ }
51
+ }
52
+ }
@@ -2,3 +2,4 @@ import { GeneratorCallback, type Tree } from '@nx/devkit';
2
2
  import { type Schema } from './schema';
3
3
  export declare function configurationGenerator(tree: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export default configurationGenerator;
5
+ //# sourceMappingURL=configuration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../../../../packages/rsbuild/src/generators/configuration/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,iBAAiB,EAIjB,KAAK,IAAI,EACV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,8BAiDtE;AAED,eAAe,sBAAsB,CAAC"}
@@ -1 +1,2 @@
1
1
  export * from './normalize-options';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/rsbuild/src/generators/configuration/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -8,3 +8,4 @@ export interface NormalizedOptions extends Schema {
8
8
  projectRoot: string;
9
9
  }
10
10
  export declare function normalizeOptions(tree: Tree, schema: Schema, project: ProjectConfiguration): Promise<NormalizedOptions>;
11
+ //# sourceMappingURL=normalize-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize-options.d.ts","sourceRoot":"","sources":["../../../../../../../packages/rsbuild/src/generators/configuration/lib/normalize-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,IAAI,EACT,KAAK,oBAAoB,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AAGxC,MAAM,WAAW,iBAAkB,SAAQ,MAAM;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,YAAY,CAAC;IACtC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,oBAAoB,8BAiC9B"}
@@ -4,3 +4,4 @@ export declare function updateDependencies(tree: Tree, schema: InitGeneratorSche
4
4
  export declare function initGenerator(tree: Tree, schema: InitGeneratorSchema): Promise<GeneratorCallback>;
5
5
  export declare function initGeneratorInternal(tree: Tree, schema: InitGeneratorSchema): Promise<GeneratorCallback>;
6
6
  export default initGenerator;
7
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../../../../packages/rsbuild/src/generators/init/init.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EACT,KAAK,iBAAiB,EAMvB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,qBAWzE;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,mBAAmB,8BAEpE;AAED,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,mBAAmB,8BAkD5B;AAED,eAAe,aAAa,CAAC"}
@@ -9,3 +9,4 @@ export interface RsbuildPluginOptions {
9
9
  watchDepsTargetName?: string;
10
10
  }
11
11
  export declare const createNodesV2: CreateNodesV2<RsbuildPluginOptions>;
12
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/plugins/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,aAAa,EAMd,MAAM,YAAY,CAAC;AAepB,MAAM,WAAW,oBAAoB;IACnC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAiBD,eAAO,MAAM,aAAa,EAAE,aAAa,CAAC,oBAAoB,CA4B7D,CAAC"}
@@ -8,3 +8,4 @@ import { type Tree } from '@nx/devkit';
8
8
  * @param options - Optional but should be defined as a string such as `property: {foo: 'bar'}`
9
9
  */
10
10
  export declare function addBuildPlugin(tree: Tree, pathToConfigFile: string, importPath: string, pluginName: string, options?: string): void;
11
+ //# sourceMappingURL=add-build-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add-build-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/add-build-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AASvC;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,gBAAgB,EAAE,MAAM,EACxB,UAAU,EAAE,MAAM,EAClB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,QA6CjB"}
@@ -2,3 +2,4 @@ import { type Tree } from '@nx/devkit';
2
2
  export declare function addHtmlTemplatePath(tree: Tree, configFilePath: string, templatePath: string): void;
3
3
  export declare function addCopyAssets(tree: Tree, configFilePath: string, from: string): void;
4
4
  export declare function addExperimentalSwcPlugin(tree: Tree, configFilePath: string, pluginName: string): void;
5
+ //# sourceMappingURL=ast-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ast-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/ast-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAOvC,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,YAAY,EAAE,MAAM,QAgDrB;AAED,wBAAgB,aAAa,CAC3B,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,QAgDb;AAED,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,IAAI,EACV,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,QAoGnB"}
@@ -1,2 +1,3 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function getRsbuildE2EWebServerInfo(tree: Tree, projectName: string, configFilePath: string, isPluginBeingAdded: boolean, e2ePortOverride?: number): Promise<import("@nx/devkit/src/generators/e2e-web-server-info-utils").E2EWebServerDetails>;
3
+ //# sourceMappingURL=e2e-web-server-info-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"e2e-web-server-info-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/e2e-web-server-info-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,YAAY,CAAC;AAGnD,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,MAAM,EACnB,cAAc,EAAE,MAAM,EACtB,kBAAkB,EAAE,OAAO,EAC3B,eAAe,CAAC,EAAE,MAAM,8FA8BzB"}
@@ -1,2 +1,3 @@
1
1
  import { type Tree } from '@nx/devkit';
2
2
  export declare function hasRsbuildPlugin(tree: Tree, projectPath?: string): boolean;
3
+ //# sourceMappingURL=has-rsbuild-plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"has-rsbuild-plugin.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/has-rsbuild-plugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAc,MAAM,YAAY,CAAC;AAGnD,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,EAAE,MAAM,WA6BhE"}
@@ -1 +1,2 @@
1
1
  export declare function indentBy(tabNumber: number): (str: string) => string;
2
+ //# sourceMappingURL=indent-by.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"indent-by.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/indent-by.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,SAAS,EAAE,MAAM,IAChC,KAAK,MAAM,YAOpB"}
@@ -14,3 +14,4 @@ export declare const rsbuildPluginStyledComponentsVersion = "1.1.0";
14
14
  */
15
15
  export declare const rsbuildSwcPluginEmotionVersion = "^7.0.3";
16
16
  export declare const rsbuildSwcPluginStyledJsxVersion = "^5.0.2";
17
+ //# sourceMappingURL=versions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/rsbuild/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAC/D,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,yBAAyB,UAAU,CAAC;AACjD,eAAO,MAAM,uBAAuB,UAAU,CAAC;AAC/C,eAAO,MAAM,wBAAwB,UAAU,CAAC;AAChD,eAAO,MAAM,wBAAwB,UAAU,CAAC;AAChD,eAAO,MAAM,oCAAoC,UAAU,CAAC;AAE5D;;;;;;GAMG;AACH,eAAO,MAAM,8BAA8B,WAAW,CAAC;AACvD,eAAO,MAAM,gCAAgC,WAAW,CAAC"}