mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00

This changes the lockfile to not store JSR specifiers in the "remote" section. Instead a single JSR integrity is stored per package in the lockfile, which is a hash of the version's `x.x.x_meta.json` file, which contains hashes for every file in the package. The hashes in this file are then compared against when loading. Additionally, when using `{ "vendor": true }` in a deno.json, the files can be modified without causing lockfile errors—the checksum is only checked when copying into the vendor folder and not afterwards (eventually we should add this behaviour for non-jsr specifiers as well). As part of this change, the `vendor` folder creation is not always automatic in the LSP and running an explicit cache command is necessary. The code required to track checksums in the LSP would have been too complex for this PR, so that all goes through deno_graph now. The vendoring is still automatic when running from the CLI.
169 lines
5 KiB
TOML
169 lines
5 KiB
TOML
# Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
|
|
[package]
|
|
name = "deno"
|
|
version = "1.40.5"
|
|
authors.workspace = true
|
|
default-run = "deno"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Provides the deno executable"
|
|
|
|
[[bin]]
|
|
name = "deno"
|
|
path = "main.rs"
|
|
doc = false
|
|
|
|
[[bin]]
|
|
name = "denort"
|
|
path = "mainrt.rs"
|
|
doc = false
|
|
|
|
[[test]]
|
|
name = "integration"
|
|
path = "integration_tests_runner.rs"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "deno_bench"
|
|
harness = false
|
|
path = "./bench/main.rs"
|
|
|
|
[[bench]]
|
|
name = "lsp_bench_standalone"
|
|
harness = false
|
|
path = "./bench/lsp_bench_standalone.rs"
|
|
|
|
[features]
|
|
default = ["upgrade", "__vendored_zlib_ng"]
|
|
# A feature that enables the upgrade subcommand and the background check for
|
|
# available updates (of deno binary). This is typically disabled for (Linux)
|
|
# distribution packages.
|
|
upgrade = []
|
|
# A dev feature to disable creations and loading of snapshots in favor of
|
|
# loading JS sources at runtime.
|
|
__runtime_js_sources = ["deno_runtime/__runtime_js_sources"]
|
|
# Vendor zlib as zlib-ng
|
|
__vendored_zlib_ng = ["flate2/zlib-ng-compat", "libz-sys/zlib-ng"]
|
|
|
|
[build-dependencies]
|
|
deno_runtime = { workspace = true, features = ["include_js_files_for_snapshotting", "only_snapshotted_js_sources"] }
|
|
deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] }
|
|
lazy-regex.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
zstd.workspace = true
|
|
glibc_version = "0.1.2"
|
|
flate2 = { workspace = true, features = ["default"] }
|
|
|
|
[target.'cfg(windows)'.build-dependencies]
|
|
winapi.workspace = true
|
|
winres.workspace = true
|
|
|
|
[dependencies]
|
|
deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] }
|
|
deno_cache_dir = { workspace = true }
|
|
deno_config = "=0.9.2"
|
|
deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] }
|
|
deno_doc = { version = "=0.107.0", features = ["html"] }
|
|
deno_emit = "=0.37.0"
|
|
deno_graph = "=0.66.0"
|
|
deno_lint = { version = "=0.56.0", features = ["docs"] }
|
|
deno_lockfile.workspace = true
|
|
deno_npm = "=0.17.0"
|
|
deno_runtime = { workspace = true, features = ["include_js_files_for_snapshotting"] }
|
|
deno_semver = "=0.5.4"
|
|
deno_task_shell = "=0.14.3"
|
|
deno_terminal.workspace = true
|
|
eszip = "=0.63.0"
|
|
napi_sym.workspace = true
|
|
|
|
async-trait.workspace = true
|
|
base32 = "=0.4.0"
|
|
base64.workspace = true
|
|
bincode = "=1.3.3"
|
|
bytes.workspace = true
|
|
cache_control.workspace = true
|
|
chrono.workspace = true
|
|
clap = { version = "=4.4.17", features = ["env", "string"] }
|
|
clap_complete = "=4.4.7"
|
|
clap_complete_fig = "=4.4.2"
|
|
color-print = "0.3.5"
|
|
console_static_text.workspace = true
|
|
dashmap = "5.5.3"
|
|
data-encoding.workspace = true
|
|
dissimilar = "=1.0.4"
|
|
dotenvy = "0.15.7"
|
|
dprint-plugin-json = "=0.19.1"
|
|
dprint-plugin-jupyter = "=0.1.2"
|
|
dprint-plugin-markdown = "=0.16.3"
|
|
dprint-plugin-typescript = "=0.89.0"
|
|
env_logger = "=0.10.0"
|
|
fancy-regex = "=0.10.0"
|
|
# If you disable the default __vendored_zlib_ng feature above, you _must_ be able to link against `-lz`.
|
|
flate2.workspace = true
|
|
fs3.workspace = true
|
|
glob = "0.3.1"
|
|
hex.workspace = true
|
|
import_map = { version = "=0.18.3", features = ["ext"] }
|
|
indexmap.workspace = true
|
|
jsonc-parser = { version = "=0.23.0", features = ["serde"] }
|
|
lazy-regex.workspace = true
|
|
libc.workspace = true
|
|
libz-sys.workspace = true
|
|
log = { workspace = true, features = ["serde"] }
|
|
lsp-types.workspace = true
|
|
monch.workspace = true
|
|
notify.workspace = true
|
|
once_cell.workspace = true
|
|
open = "5.0.1"
|
|
os_pipe.workspace = true
|
|
percent-encoding.workspace = true
|
|
phf.workspace = true
|
|
pin-project.workspace = true
|
|
quick-junit = "^0.3.5"
|
|
rand = { workspace = true, features = ["small_rng"] }
|
|
regex.workspace = true
|
|
ring.workspace = true
|
|
rustyline.workspace = true
|
|
rustyline-derive = "=0.7.0"
|
|
serde.workspace = true
|
|
serde_repr.workspace = true
|
|
sha2.workspace = true
|
|
shell-escape = "=0.1.5"
|
|
tar.workspace = true
|
|
tempfile.workspace = true
|
|
text-size = "=1.1.0"
|
|
text_lines = "=0.6.0"
|
|
thiserror.workspace = true
|
|
tokio.workspace = true
|
|
tokio-util.workspace = true
|
|
tower-lsp.workspace = true
|
|
twox-hash = "=1.6.3"
|
|
typed-arena = "=2.0.1"
|
|
unicode-width = "0.1"
|
|
uuid = { workspace = true, features = ["serde"] }
|
|
walkdir = "=2.3.2"
|
|
zeromq = { version = "=0.3.4", default-features = false, features = ["tcp-transport", "tokio-runtime"] }
|
|
zstd.workspace = true
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
fwdansi.workspace = true
|
|
junction = "=0.2.0"
|
|
winapi = { workspace = true, features = ["knownfolders", "mswsock", "objbase", "shlobj", "tlhelp32", "winbase", "winerror", "winsock2"] }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
nix.workspace = true
|
|
|
|
[dev-dependencies]
|
|
deno_bench_util.workspace = true
|
|
pretty_assertions.workspace = true
|
|
test_util.workspace = true
|
|
|
|
[package.metadata.winres]
|
|
# This section defines the metadata that appears in the deno.exe PE header.
|
|
OriginalFilename = "deno.exe"
|
|
LegalCopyright = "© Deno contributors & Deno Land Inc. MIT licensed."
|
|
ProductName = "Deno"
|
|
FileDescription = "Deno: A secure runtime for JavaScript and TypeScript"
|