# DenoAppResource.WithDenoLock

- Module: [Aspire.Hosting.JavaScript](/reference/api/go/aspire.hosting.javascript.md)
- Defined on: [DenoAppResource](/reference/api/go/aspire.hosting.javascript/denoappresource.md)
- Version: `17.0.0`
- Kind: `method`

Sets `--lock <file>`.

## Definition

```go
type DenoAppResource interface {
    // ... omitted for brevity
    WithDenoLock(lockFile string) DenoAppResource
}
```

## Signature

```go
WithDenoLock(lockFile string) DenoAppResource
```

## Parameters

- `lockFile` (`string`) -- The lockfile path.

## Returns

[`DenoAppResource`](/reference/api/go/aspire.hosting.javascript/denoappresource.md) -- The resource builder.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [DenoAppResource](/reference/api/go/aspire.hosting.javascript/denoappresource.md) -- `handle`
