File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 11import assert from "node:assert" ;
2- import { mkdir , readFile , writeFile } from "node:fs/promises" ;
3- import path from "node:path" ;
4- import dedent from "ts-dedent" ;
5- import { bundleWorker } from "../deployment-bundle/bundle" ;
6- import { noopModuleCollector } from "../deployment-bundle/module-collection" ;
72import { isProcessEnvPopulated } from "../process-env" ;
8- import { mockConsoleMethods } from "./helpers/mock-console" ;
9- import { runInTempDir } from "./helpers/run-in-tmp" ;
10-
11- /*
12- * This file contains inline comments with the word "javascript"
13- * This signals to a compatible editor extension that the template string
14- * contents should be syntax-highlighted as JavaScript. One such extension
15- * is zjcompt.es6-string-javascript, but there are others.
16- */
17-
18- async function seedFs ( files : Record < string , string > ) : Promise < void > {
19- for ( const [ location , contents ] of Object . entries ( files ) ) {
20- await mkdir ( path . dirname ( location ) , { recursive : true } ) ;
21- await writeFile ( location , contents ) ;
22- }
23- }
243
254describe ( "isProcessEnvPopulated" , ( ) => {
265 test ( "default" , ( ) => {
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ export async function generateEnvTypes(
255255 entrypoint ?: Entry ,
256256 log = true
257257) : Promise < { envHeader ?: string ; envTypes ?: string } > {
258- let stringKeys : string [ ] = [ ] ;
258+ const stringKeys : string [ ] = [ ] ;
259259 const secrets = getVarsForDev (
260260 // We do not want `getVarsForDev()` to merge in the standard vars into the dev vars
261261 // because we want to be able to work with secrets differently to vars.
You can’t perform that action at this time.
0 commit comments