@ngx-env/builder
Advanced tools
Comparing version 18.0.0 to 18.0.1
import { BuilderContext } from "@angular-devkit/architect"; | ||
import { DevServerBuilderOptions, DevServerBuilderOutput } from "@angular-devkit/build-angular"; | ||
import { JsonObject } from "@angular-devkit/core"; | ||
import { Observable } from "rxjs"; | ||
import { NgxEnvSchema } from "../ngx-env/ngx-env-schema"; | ||
import { JsonObject } from "@angular-devkit/core"; | ||
export declare const buildWithPlugin: (options: DevServerBuilderOptions & NgxEnvSchema, context: BuilderContext) => Observable<DevServerBuilderOutput>; | ||
declare const _default: import("@angular-devkit/architect/src/internal").Builder<DevServerBuilderOptions & JsonObject>; | ||
export default _default; |
@@ -40,3 +40,3 @@ "use strict"; | ||
} | ||
return (0, rxjs_1.combineLatest)([setup(), builderName(), (0, project_1.getProjectCwd)(context)]).pipe((0, rxjs_1.switchMap)((_b) => __awaiter(void 0, [_b], void 0, function* ([_options, builderName, cwd]) { | ||
return (0, rxjs_1.combineLatest)([setup(), builderName(), (0, project_1.getProjectCwd)(context)]).pipe((0, rxjs_1.switchMap)(([_options, builderName, cwd]) => { | ||
const dotenvRunOptions = Object.assign(Object.assign(Object.assign({}, options.ngxEnv), _options.ngxEnv), { global: "_NGX_ENV_", cwd }); | ||
@@ -48,3 +48,3 @@ if (builderName === "@ngx-env/builder:application") { | ||
context.validateOptions = () => __awaiter(void 0, void 0, void 0, function* () { return _options; }); | ||
const result = (0, build_angular_1.executeDevServerBuilder)(options, context, { | ||
return (0, build_angular_1.executeDevServerBuilder)(options, context, { | ||
indexHtml: (content) => __awaiter(void 0, void 0, void 0, function* () { return (0, esbuild_index_html_1.devServerIndexHtml)(content, raw, dotenvRunOptions.runtime); }), | ||
@@ -55,3 +55,2 @@ }, { | ||
}); | ||
return result.pipe((0, rxjs_1.tap)((res) => { })); | ||
} | ||
@@ -61,5 +60,5 @@ else { | ||
} | ||
}))); | ||
})); | ||
}; | ||
exports.buildWithPlugin = buildWithPlugin; | ||
exports.default = (0, architect_1.createBuilder)(exports.buildWithPlugin); |
{ | ||
"name": "@ngx-env/builder", | ||
"version": "18.0.0", | ||
"version": "18.0.1", | ||
"description": "Easily inject environment variables into your Angular applications", | ||
@@ -5,0 +5,0 @@ "author": "chihab <chihab@gmail.com>", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
175338
3699