Configure Deno tasks for system CA store
This commit is contained in:
parent
9ebf84583e
commit
b6dcff0066
2 changed files with 11 additions and 7 deletions
|
|
@ -10,7 +10,11 @@ Make sure to install Deno: https://deno.land/manual/getting_started/installation
|
||||||
Then start the project:
|
Then start the project:
|
||||||
|
|
||||||
```
|
```
|
||||||
deno task start
|
DENO_TLS_CA_STORE=system deno task start
|
||||||
```
|
```
|
||||||
|
|
||||||
This will watch the project directory and restart as necessary.
|
This will watch the project directory and restart as necessary.
|
||||||
|
|
||||||
|
If your network uses a custom certificate authority, setting
|
||||||
|
`DENO_TLS_CA_STORE=system` ensures Deno trusts the system certificate store
|
||||||
|
while downloading dependencies.
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
{
|
{
|
||||||
"lock": false,
|
"lock": false,
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
|
"check": "DENO_TLS_CA_STORE=system deno fmt --check && DENO_TLS_CA_STORE=system deno lint && DENO_TLS_CA_STORE=system deno check **/*.ts && DENO_TLS_CA_STORE=system deno check **/*.tsx",
|
||||||
"cli": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
|
"cli": "DENO_TLS_CA_STORE=system echo \"import '\\$fresh/src/dev/cli.ts'\" | DENO_TLS_CA_STORE=system deno run --unstable -A -",
|
||||||
"manifest": "deno task cli manifest $(pwd)",
|
"manifest": "deno task cli manifest $(pwd)",
|
||||||
"start": "deno run -A --watch=static/,routes/ dev.ts",
|
"start": "DENO_TLS_CA_STORE=system deno run -A --watch=static/,routes/ dev.ts",
|
||||||
"build": "deno run -A dev.ts build",
|
"build": "DENO_TLS_CA_STORE=system deno run -A dev.ts build",
|
||||||
"preview": "deno run -A main.ts",
|
"preview": "DENO_TLS_CA_STORE=system deno run -A main.ts",
|
||||||
"update": "deno run -A -r https://fresh.deno.dev/update ."
|
"update": "DENO_TLS_CA_STORE=system deno run -A -r https://fresh.deno.dev/update ."
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"rules": {
|
"rules": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue