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" + } +}