corregir run script y tsconfig

This commit is contained in:
Cat /dev/Nulo 2023-11-28 21:19:12 -03:00
parent 93d309ac17
commit b50a902a52
3 changed files with 26 additions and 1 deletions

View file

@ -5,7 +5,7 @@
"description": "",
"main": "index.js",
"scripts": {
"run": "mkdir -p data && cd data && env NODE_EXTRA_CA_CERTS=pki/ca_intermediate_root_bundle.pem node download_json.js"
"run": "mkdir -p data && cd data && env NODE_EXTRA_CA_CERTS=../pki/ca_intermediate_root_bundle.pem node ../download_json.js"
},
"keywords": [],
"author": "",
@ -15,6 +15,7 @@
"undici": "^5.28.0"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.2",
"@types/node": "^20.10.0"
}
}

View file

@ -13,6 +13,9 @@ dependencies:
version: 5.28.0
devDependencies:
'@tsconfig/node20':
specifier: ^20.1.2
version: 20.1.2
'@types/node':
specifier: ^20.10.0
version: 20.10.0
@ -24,6 +27,10 @@ packages:
engines: {node: '>=14'}
dev: false
/@tsconfig/node20@20.1.2:
resolution: {integrity: sha512-madaWq2k+LYMEhmcp0fs+OGaLFk0OenpHa4gmI4VEmCKX4PJntQ6fnnGADVFrVkBj0wIdAlQnK/MrlYTHsa1gQ==}
dev: true
/@types/node@20.10.0:
resolution: {integrity: sha512-D0WfRmU9TQ8I9PFx9Yc+EBHw+vSpIub4IDvQivcp26PtPrdMGAq5SDcpXEo/epqa/DXotVpekHiLNTg3iaKXBQ==}
dependencies:

17
tsconfig.json Normal file
View file

@ -0,0 +1,17 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 20",
"_version": "20.1.0",
"compilerOptions": {
"lib": ["es2023"],
"module": "node16",
"target": "es2022",
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node16"
}
}