Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apphosting/adapter-angular

Package Overview
Dependencies
Maintainers
0
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apphosting/adapter-angular - npm Package Compare versions

Comparing version 17.2.9 to 17.2.10-canary.7fe9dad

12

dist/bin/build.js
#! /usr/bin/env node
import { generateBuildOutput, checkBuildConditions, validateOutputDirectory, parseOutputBundleOptions, } from "../utils.js";
import { generateBuildOutput, checkBuildConditions, validateOutputDirectory, parseOutputBundleOptions, outputBundleExists, } from "../utils.js";
import { getBuildOptions, runBuild } from "@apphosting/common";

@@ -16,5 +16,7 @@ const opts = getBuildOptions();

}
const outputBundleOptions = parseOutputBundleOptions(output);
const root = process.cwd();
await generateBuildOutput(root, outputBundleOptions, process.env.FRAMEWORK_VERSION);
await validateOutputDirectory(outputBundleOptions);
if (!outputBundleExists()) {
const outputBundleOptions = parseOutputBundleOptions(output);
const root = process.cwd();
await generateBuildOutput(root, outputBundleOptions, process.env.FRAMEWORK_VERSION);
await validateOutputDirectory(outputBundleOptions);
}

@@ -35,3 +35,3 @@ const importUtils = import("@apphosting/adapter-angular/dist/utils.js");

".apphosting/bundle.yaml": `version: v1
serverConfig:
runConfig:
runCommand: node dist/test/server/server.mjs

@@ -38,0 +38,0 @@ environmentVariables: []

@@ -6,3 +6,3 @@ /// <reference types="node" resolution-mode="require"/>

export declare const writeFile: typeof import("fs").writeFile.__promisify__ & typeof import("fs").writeFile, move: typeof fsExtra.move, readJson: typeof import("jsonfile").readFile, mkdir: typeof import("fs").mkdir.__promisify__ & typeof import("fs").mkdir, copyFile: typeof import("fs").copyFile.__promisify__ & typeof import("fs").copyFile, readFileSync: typeof fsExtra.readFileSync, existsSync: typeof fsExtra.existsSync;
export declare const REQUIRED_BUILDER = "@angular-devkit/build-angular:application";
export declare const ALLOWED_BUILDERS: string[];
/**

@@ -26,1 +26,2 @@ * Check if the following build conditions are satisfied for the workspace:

export declare const isMain: (meta: ImportMeta) => boolean;
export declare const outputBundleExists: () => boolean;

@@ -17,3 +17,6 @@ import fsExtra from "fs-extra";

const SIMPLE_SERVER_FILE_PATH = join(__dirname, "simple-server", "bundled_server.mjs");
export const REQUIRED_BUILDER = "@angular-devkit/build-angular:application";
export const ALLOWED_BUILDERS = [
"@angular-devkit/build-angular:application",
"@analogjs/platform:vite",
];
/**

@@ -31,4 +34,4 @@ * Check if the following build conditions are satisfied for the workspace:

const builder = projectJson.targets.build.executor;
if (builder !== REQUIRED_BUILDER) {
throw new Error("Only the Angular application builder is supported. Please refer to https://angular.dev/tools/cli/build-system-migration#for-existing-applications guide to upgrade your builder to the Angular application builder. ");
if (!ALLOWED_BUILDERS.includes(builder)) {
throw new Error(`Currently, only the following builders are supported: ${ALLOWED_BUILDERS.join(",")}.`);
}

@@ -62,4 +65,4 @@ return;

const { builder } = workspaceProject.targets.get(target);
if (builder !== REQUIRED_BUILDER) {
throw new Error("Only the Angular application builder is supported. Please refer to https://angular.dev/tools/cli/build-system-migration#for-existing-applications guide to upgrade your builder to the Angular application builder. ");
if (!ALLOWED_BUILDERS.includes(builder)) {
throw new Error(`Currently, only the following builders are supported: ${ALLOWED_BUILDERS.join(",")}.`);
}

@@ -163,3 +166,3 @@ }

version: "v1",
serverConfig: {
runConfig: {
runCommand: `node ${normalize(relative(cwd, opts.serverFilePath))}`,

@@ -192,1 +195,8 @@ environmentVariables: generateEnvVars(angularVersion),

};
export const outputBundleExists = () => {
const outputBundleDir = resolve(".apphosting");
if (existsSync(outputBundleDir)) {
return true;
}
return false;
};
{
"name": "@apphosting/adapter-angular",
"version": "17.2.9",
"version": "17.2.10-canary.7fe9dad",
"main": "dist/index.js",

@@ -46,3 +46,3 @@ "description": "Experimental addon to the Firebase CLI to add web framework support",

"dependencies": {
"@apphosting/common": "^0.0.4",
"@apphosting/common": "^0.0.5",
"firebase-functions": "^4.3.1",

@@ -83,3 +83,3 @@ "fs-extra": "^11.1.1",

"publishConfig": {
"tag": "latest",
"tag": "canary",
"registry": "https://wombat-dressing-room.appspot.com/@apphosting/adapter-angular/_ns",

@@ -86,0 +86,0 @@ "provenance": true,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc