@angular-devkit/build-webpack 0.1901.0-next.2 → 0.1901.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
3
+ Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright Google LLC All Rights Reserved.
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://angular.dev/license
7
+ */
8
+ export * from './src/index';
package/index.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * @license
4
+ * Copyright Google LLC All Rights Reserved.
5
+ *
6
+ * Use of this source code is governed by an MIT-style license that can be
7
+ * found in the LICENSE file at https://angular.dev/license
8
+ */
9
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ var desc = Object.getOwnPropertyDescriptor(m, k);
12
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
+ desc = { enumerable: true, get: function() { return m[k]; } };
14
+ }
15
+ Object.defineProperty(o, k2, desc);
16
+ }) : (function(o, m, k, k2) {
17
+ if (k2 === undefined) k2 = k;
18
+ o[k2] = m[k];
19
+ }));
20
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
+ };
23
+ Object.defineProperty(exports, "__esModule", { value: true });
24
+ __exportStar(require("./src/index"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/build-webpack",
3
- "version": "0.1901.0-next.2",
3
+ "version": "0.1901.0",
4
4
  "description": "Webpack Builder for Architect",
5
5
  "experimental": true,
6
6
  "main": "src/index.js",
@@ -16,7 +16,7 @@
16
16
  "./*.js": "./*.js"
17
17
  },
18
18
  "dependencies": {
19
- "@angular-devkit/architect": "0.1901.0-next.2",
19
+ "@angular-devkit/architect": "0.1901.0",
20
20
  "rxjs": "7.8.1"
21
21
  },
22
22
  "peerDependencies": {
@@ -5,7 +5,8 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import { BuilderContext, BuilderOutput } from '@angular-devkit/architect';
8
+ import { Builder, BuilderContext, BuilderOutput } from '@angular-devkit/architect';
9
+ import { json } from '@angular-devkit/core';
9
10
  import { Observable } from 'rxjs';
10
11
  import webpack from 'webpack';
11
12
  import { EmittedFiles } from '../../utils';
@@ -27,5 +28,5 @@ export declare function runWebpack(config: webpack.Configuration, context: Build
27
28
  webpackFactory?: WebpackFactory;
28
29
  shouldProvideStats?: boolean;
29
30
  }): Observable<BuildResult>;
30
- declare const _default: import("../../../../architect/src/internal").Builder<RealWebpackBuilderSchema & import("../../../../core/src").JsonObject>;
31
- export default _default;
31
+ declare const builder: Builder<WebpackBuilderSchema & json.JsonObject>;
32
+ export default builder;
@@ -86,7 +86,8 @@ function runWebpack(config, context, options = {}) {
86
86
  }
87
87
  })));
88
88
  }
89
- exports.default = (0, architect_1.createBuilder)((options, context) => {
89
+ const builder = (0, architect_1.createBuilder)((options, context) => {
90
90
  const configPath = (0, path_1.resolve)(context.workspaceRoot, options.webpackConfig);
91
91
  return (0, rxjs_1.from)((0, utils_1.getWebpackConfig)(configPath)).pipe((0, rxjs_1.switchMap)((config) => runWebpack(config, context)));
92
92
  });
93
+ exports.default = builder;
@@ -5,7 +5,8 @@
5
5
  * Use of this source code is governed by an MIT-style license that can be
6
6
  * found in the LICENSE file at https://angular.dev/license
7
7
  */
8
- import { BuilderContext } from '@angular-devkit/architect';
8
+ import { Builder, BuilderContext } from '@angular-devkit/architect';
9
+ import { json } from '@angular-devkit/core';
9
10
  import { Observable } from 'rxjs';
10
11
  import webpack from 'webpack';
11
12
  import WebpackDevServer from 'webpack-dev-server';
@@ -24,5 +25,5 @@ export declare function runWebpackDevServer(config: webpack.Configuration, conte
24
25
  webpackFactory?: WebpackFactory;
25
26
  webpackDevServerFactory?: WebpackDevServerFactory;
26
27
  }): Observable<DevServerBuildOutput>;
27
- declare const _default: import("../../../../architect/src/internal").Builder<WebpackDevServerBuilderSchema & import("../../../../core/src").JsonObject>;
28
- export default _default;
28
+ declare const builder: Builder<WebpackDevServerBuilderSchema & json.JsonObject>;
29
+ export default builder;
@@ -85,7 +85,8 @@ function runWebpackDevServer(config, context, options = {}) {
85
85
  };
86
86
  })));
87
87
  }
88
- exports.default = (0, architect_1.createBuilder)((options, context) => {
88
+ const builder = (0, architect_1.createBuilder)((options, context) => {
89
89
  const configPath = (0, path_1.resolve)(context.workspaceRoot, options.webpackConfig);
90
90
  return (0, rxjs_1.from)((0, utils_1.getWebpackConfig)(configPath)).pipe((0, rxjs_1.switchMap)((config) => runWebpackDevServer(config, context)));
91
91
  });
92
+ exports.default = builder;
@@ -1,6 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "compilerOptions": {
4
- "types": ["node"]
5
- }
6
- }