Skip to content

Commit ce0675f

Browse files
committed
fix: stop Deno CLI from creating lock file
1 parent 44552c8 commit ce0675f

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

packages/edge-bundler/node/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const getFunctionConfig = async ({
112112
`--allow-write=${collector.path}`,
113113
`--import-map=${importMap.toDataURL()}`,
114114
'--no-config',
115+
'--no-lock',
115116
'--node-modules-dir=false',
116117
'--quiet',
117118
extractorPath,

packages/edge-bundler/node/formats/eszip.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const bundleESZIP = async ({
5757
importMapData,
5858
vendorDirectory,
5959
}
60-
const flags = ['--allow-all', '--no-config', `--import-map=${bundlerImportMap}`]
60+
const flags = ['--allow-all', '--no-config', '--no-lock', `--import-map=${bundlerImportMap}`]
6161

6262
if (!debug) {
6363
flags.push('--quiet')

packages/edge-bundler/node/server/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const prepareServer = ({
123123
// the `stage2Path` file as well as all of their dependencies.
124124
// Consumers such as the CLI can use this information to watch all the
125125
// relevant files and issue an isolate restart when one of them changes.
126-
const { stdout } = await deno.run(['info', '--json', pathToFileURL(stage2Path).href])
126+
const { stdout } = await deno.run(['info', '--no-lock', '--json', pathToFileURL(stage2Path).href])
127127

128128
graph = JSON.parse(stdout)
129129
} catch {

packages/edge-bundler/node/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const ensureLatestTypes = async (deno: DenoBridge, logger: Logger, customTypesUR
2929
logger.system('Local version of types is outdated, updating:', localVersion)
3030

3131
try {
32-
await deno.run(['cache', '-r', typesURL])
32+
await deno.run(['cache', '--no-lock', '-r', typesURL])
3333
} catch (error) {
3434
logger.system('Could not download latest types:', error)
3535

0 commit comments

Comments
 (0)