Skip to content

Commit 521c856

Browse files
committed
fix: Add the --no-config and --no-npm options to the deno run flags
1 parent 4820adb commit 521c856

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "deno-vm",
3-
"version": "0.12.0",
3+
"version": "0.12.1",
44
"description": "A VM module that provides a secure runtime environment via Deno.",
55
"main": "./dist/cjs/index.js",
66
"types": "./dist/typings/index.d.ts",

src/DenoWorker.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,18 @@ export interface DenoWorkerOptions {
159159
*/
160160
denoNoCheck: boolean;
161161

162+
/**
163+
* Whether to prevent Deno from loading a config file.
164+
* Defaults to true.
165+
*/
166+
denoNoConfig: boolean;
167+
168+
/**
169+
* Whether to prevent Deno from loading packages from npm.
170+
* Defaults to true.
171+
*/
172+
denoNoNPM: boolean;
173+
162174
/**
163175
* Allow Deno to make requests to hosts with certificate
164176
* errors.
@@ -293,6 +305,8 @@ export class DenoWorker {
293305
denoLockFilePath: '',
294306
denoCachedOnly: false,
295307
denoNoCheck: false,
308+
denoNoConfig: true,
309+
denoNoNPM: true,
296310
unsafelyIgnoreCertificateErrors: false,
297311
spawnOptions: {},
298312
},
@@ -405,6 +419,8 @@ export class DenoWorker {
405419
}
406420
addOption(runArgs, '--cached-only', this._options.denoCachedOnly);
407421
addOption(runArgs, '--no-check', this._options.denoNoCheck);
422+
addOption(runArgs, '--no-config', this._options.denoNoConfig);
423+
addOption(runArgs, '--no-npm', this._options.denoNoNPM);
408424
addOption(
409425
runArgs,
410426
'--unsafely-ignore-certificate-errors',

0 commit comments

Comments
 (0)