MCPcopy Index your code
hub / github.com/angular/angularfire / defaultPackage

Function defaultPackage

src/schematics/deploy/functions-templates.ts:13–31  ·  view source on GitHub ↗
(
  dependencies: Record<string, string>,
  devDependencies: Record<string, string>,
  options: DeployBuilderOptions,
  main?: string,
)

Source from the content-addressed store, hash-verified

11};
12
13export const defaultPackage = (
14 dependencies: Record<string, string>,
15 devDependencies: Record<string, string>,
16 options: DeployBuilderOptions,
17 main?: string,
18) => ({
19 name: 'functions',
20 description: 'Angular Universal Application',
21 main: main ?? 'index.js',
22 scripts: {
23 start: main ? `node ${main}` : 'firebase functions:shell',
24 },
25 engines: {
26 node: (options.functionsNodeVersion || DEFAULT_NODE_VERSION).toString()
27 },
28 dependencies,
29 devDependencies,
30 private: true
31});
32
33export const defaultFunction = (
34 path: string,

Callers 1

getPackageJsonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected