@ngx-env/builder
Advanced tools
Comparing version 17.2.2 to 17.2.3
@@ -34,3 +34,3 @@ "use strict"; | ||
if ((yield builderName()) === "@ngx-env/builder:application") { | ||
// Because of validateOptions being ignored, we need to validate options manually | ||
// Because of ngxEnv being removed from the options, we need to validate it here | ||
yield context.validateOptions(targetOptions, "@ngx-env/builder:application"); | ||
@@ -46,3 +46,5 @@ } | ||
const { full, raw } = (0, core_1.env)(Object.assign(Object.assign({}, ngxEnvOptions), { environment: (0, get_environment_1.getEnvironment)(buildTarget.configuration) })); | ||
return (0, build_angular_1.executeDevServerBuilder)(options, Object.assign(Object.assign({}, context), { validateOptions: (options) => __awaiter(void 0, void 0, void 0, function* () { return options; }) }), { | ||
delete _options.ngxEnv; | ||
context.getTargetOptions = () => __awaiter(void 0, void 0, void 0, function* () { return _options; }); | ||
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); }), | ||
@@ -49,0 +51,0 @@ }, { |
import { BuilderContext } from "@angular-devkit/architect"; | ||
import { ExtractI18nBuilderOptions } from "@angular-devkit/build-angular"; | ||
import { NgxEnvSchema } from "../ngx-env/ngx-env-schema"; | ||
import { JsonObject } from "@angular-devkit/core"; | ||
export declare const buildWithPlugin: (options: ExtractI18nBuilderOptions & NgxEnvSchema, context: BuilderContext) => import("rxjs").Observable<import("@angular-devkit/architect").BuilderOutput>; | ||
declare const _default: import("@angular-devkit/architect/src/internal").Builder<ExtractI18nBuilderOptions & import("@angular-devkit/core").JsonObject>; | ||
declare const _default: import("@angular-devkit/architect/src/internal").Builder<ExtractI18nBuilderOptions & JsonObject>; | ||
export default _default; |
@@ -24,3 +24,3 @@ "use strict"; | ||
if ((yield builderName()) === "@ngx-env/builder:application") { | ||
// Because of validateOptions being ignored, we need to validate options manually | ||
// Because of ngxEnv being removed from the options, we need to validate it here | ||
yield context.validateOptions(targetOptions, "@ngx-env/builder:application"); | ||
@@ -41,3 +41,5 @@ } | ||
else { | ||
return (0, build_angular_1.executeExtractI18nBuilder)(options, Object.assign(Object.assign({}, context), { getBuilderNameForTarget: () => __awaiter(void 0, void 0, void 0, function* () { return "@angular-devkit/build-angular:" + builderName.split(":")[1]; }), validateOptions: (options) => __awaiter(void 0, void 0, void 0, function* () { return options; }) })); | ||
delete _options.ngxEnv; | ||
context.getTargetOptions = () => __awaiter(void 0, void 0, void 0, function* () { return _options; }); | ||
return (0, build_angular_1.executeExtractI18nBuilder)(options, Object.assign(Object.assign({}, context), { getBuilderNameForTarget: () => __awaiter(void 0, void 0, void 0, function* () { return "@angular-devkit/build-angular:" + builderName.split(":")[1]; }) })); | ||
} | ||
@@ -44,0 +46,0 @@ })); |
{ | ||
"name": "@ngx-env/builder", | ||
"version": "17.2.2", | ||
"version": "17.2.3", | ||
"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
168588
3594