From b50a902a5285467ecf805b42c65b34f28fea2694 Mon Sep 17 00:00:00 2001 From: Nulo Date: Tue, 28 Nov 2023 21:19:12 -0300 Subject: [PATCH] corregir run script y tsconfig --- package.json | 3 ++- pnpm-lock.yaml | 7 +++++++ tsconfig.json | 17 +++++++++++++++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/package.json b/package.json index 769250e..be75393 100644 --- a/package.json +++ b/package.json @@ -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" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7bb4b92..4ad8936 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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: diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..389d708 --- /dev/null +++ b/tsconfig.json @@ -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" + } +}