2021-10-13 14:37:57 +00:00
|
|
|
{
|
2022-02-24 12:10:45 +00:00
|
|
|
"compilerOptions": {
|
|
|
|
"strict": true,
|
refactor(archive,async,cli,csv,dotenv,encoding,expect,fmt,front-matter,fs,http,internal,log,net,path,semver,testing,text,webgpu,yaml): enable `"exactOptionalPropertyTypes"` option (#5892)
2024-09-04 05:15:01 +00:00
|
|
|
"exactOptionalPropertyTypes": true,
|
2022-02-24 12:10:45 +00:00
|
|
|
"useUnknownInCatchVariables": true,
|
2024-03-14 04:20:24 +00:00
|
|
|
"noImplicitOverride": true,
|
|
|
|
"noUncheckedIndexedAccess": true
|
2022-02-24 12:10:45 +00:00
|
|
|
},
|
2024-08-20 03:58:45 +00:00
|
|
|
"importMap": "./import_map.json",
|
2022-03-17 16:31:32 +00:00
|
|
|
"tasks": {
|
2024-05-30 11:13:58 +00:00
|
|
|
"test": "deno test --unstable-http --unstable-webgpu --doc --allow-all --parallel --coverage --trace-leaks --clean",
|
2024-07-01 02:11:09 +00:00
|
|
|
"test:browser": "git grep --name-only \"This module is browser compatible.\" | grep -v deno.json | grep -v .github/workflows | grep -v _tools | grep -v encoding/README.md | grep -v media_types/vendor/update.ts | xargs deno check --config browser-compat.tsconfig.json",
|
2024-07-04 05:36:47 +00:00
|
|
|
"test:node": "node --import ./_tools/node_test_runner/register_deno_shim.mjs ./_tools/node_test_runner/run_test.mjs",
|
2022-12-13 04:07:56 +00:00
|
|
|
"fmt:licence-headers": "deno run --allow-read --allow-write ./_tools/check_licence.ts",
|
2024-04-17 06:36:50 +00:00
|
|
|
"lint:deprecations": "deno run --allow-read --allow-net --allow-env ./_tools/check_deprecation.ts",
|
2024-06-04 04:07:56 +00:00
|
|
|
"lint:circular": "deno run --allow-env --allow-read --allow-write --allow-net=deno.land,jsr.io ./_tools/check_circular_package_dependencies.ts",
|
2024-01-25 09:36:46 +00:00
|
|
|
"lint:mod-exports": "deno run --allow-env --allow-read ./_tools/check_mod_exports.ts",
|
2023-09-13 13:11:01 +00:00
|
|
|
"lint:tools-types": "deno check _tools/*.ts",
|
2024-05-22 13:42:59 +00:00
|
|
|
"lint:docs": "deno run -A _tools/check_docs.ts",
|
2024-07-10 11:06:59 +00:00
|
|
|
"lint:import-map": "deno run -A _tools/check_import_map.ts",
|
2024-07-12 07:48:57 +00:00
|
|
|
"lint": "deno lint && deno task fmt:licence-headers --check && deno task lint:circular && deno task lint:deprecations && deno task lint:tools-types && deno task lint:mod-exports && deno task lint:import-map && deno task lint:docs",
|
2023-06-26 06:23:09 +00:00
|
|
|
"typos": "typos -c ./.github/workflows/typos.toml",
|
2022-11-07 06:53:46 +00:00
|
|
|
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
|
2024-03-28 02:24:37 +00:00
|
|
|
"wasmbuild": "deno run -A jsr:@deno/wasmbuild@0.17.1 --js-ext mjs --sync",
|
2024-06-25 07:35:00 +00:00
|
|
|
"cov": "deno coverage --ignore=\"**/*.generated.mjs,**/_test_utils.ts\"",
|
2024-05-29 11:02:37 +00:00
|
|
|
"cov:gen": "deno task cov --lcov --output=cov.lcov",
|
|
|
|
"cov:view": "deno task cov --html",
|
2023-11-02 01:03:55 +00:00
|
|
|
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test"
|
2023-07-04 05:05:54 +00:00
|
|
|
},
|
|
|
|
"exclude": [
|
|
|
|
".git",
|
|
|
|
"crypto/_wasm/target",
|
|
|
|
"cov",
|
|
|
|
"jsonc/testdata",
|
2023-12-21 03:34:17 +00:00
|
|
|
"front_matter/testdata",
|
2024-07-04 05:36:47 +00:00
|
|
|
"_tools/node_test_runner",
|
2024-01-05 07:55:55 +00:00
|
|
|
"coverage",
|
|
|
|
"docs"
|
2024-03-05 03:57:14 +00:00
|
|
|
],
|
|
|
|
"lint": {
|
|
|
|
"rules": {
|
|
|
|
"include": [
|
2024-03-12 00:36:10 +00:00
|
|
|
"camelcase",
|
2024-03-14 11:18:00 +00:00
|
|
|
"no-sync-fn-in-async-fn",
|
2024-04-02 00:57:05 +00:00
|
|
|
"single-var-declarator",
|
|
|
|
"verbatim-module-syntax"
|
2024-03-05 03:57:14 +00:00
|
|
|
]
|
|
|
|
}
|
2024-04-29 02:57:30 +00:00
|
|
|
},
|
2024-07-11 00:24:30 +00:00
|
|
|
"workspace": [
|
2024-04-29 02:57:30 +00:00
|
|
|
"./archive",
|
|
|
|
"./assert",
|
|
|
|
"./async",
|
|
|
|
"./bytes",
|
2024-08-08 16:12:24 +00:00
|
|
|
"./cache",
|
2024-04-29 02:57:30 +00:00
|
|
|
"./cli",
|
|
|
|
"./collections",
|
|
|
|
"./crypto",
|
|
|
|
"./csv",
|
|
|
|
"./data_structures",
|
|
|
|
"./datetime",
|
|
|
|
"./dotenv",
|
|
|
|
"./encoding",
|
|
|
|
"./expect",
|
|
|
|
"./fmt",
|
|
|
|
"./front_matter",
|
|
|
|
"./fs",
|
|
|
|
"./html",
|
|
|
|
"./http",
|
|
|
|
"./ini",
|
|
|
|
"./internal",
|
|
|
|
"./io",
|
|
|
|
"./json",
|
|
|
|
"./jsonc",
|
|
|
|
"./log",
|
|
|
|
"./media_types",
|
|
|
|
"./msgpack",
|
|
|
|
"./net",
|
|
|
|
"./path",
|
|
|
|
"./regexp",
|
|
|
|
"./semver",
|
|
|
|
"./streams",
|
2024-09-04 08:28:07 +00:00
|
|
|
"./tar",
|
2024-04-29 02:57:30 +00:00
|
|
|
"./testing",
|
|
|
|
"./text",
|
|
|
|
"./toml",
|
|
|
|
"./ulid",
|
|
|
|
"./url",
|
|
|
|
"./uuid",
|
|
|
|
"./webgpu",
|
|
|
|
"./yaml"
|
|
|
|
]
|
2021-10-13 14:37:57 +00:00
|
|
|
}
|