setup typescript

nulfrost 24464802 e8621890

+1
.gitignore
···
··· 1 + node_modules
+7 -1
package.json
··· 12 "type": "git", 13 "url": "git+https://github.com/nulfrost/leaflet-loader-astro.git" 14 }, 15 "license": "MIT", 16 "files": ["dist"], 17 "type": "module", 18 - "main": "dist/index.js" 19 }
··· 12 "type": "git", 13 "url": "git+https://github.com/nulfrost/leaflet-loader-astro.git" 14 }, 15 + "scripts": { 16 + "build": "tsc" 17 + }, 18 "license": "MIT", 19 "files": ["dist"], 20 "type": "module", 21 + "main": "dist/index.js", 22 + "devDependencies": { 23 + "typescript": "^5.9.2" 24 + } 25 }
+24
pnpm-lock.yaml
···
··· 1 + lockfileVersion: '9.0' 2 + 3 + settings: 4 + autoInstallPeers: true 5 + excludeLinksFromLockfile: false 6 + 7 + importers: 8 + 9 + .: 10 + devDependencies: 11 + typescript: 12 + specifier: ^5.9.2 13 + version: 5.9.2 14 + 15 + packages: 16 + 17 + typescript@5.9.2: 18 + resolution: {integrity: sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A==} 19 + engines: {node: '>=14.17'} 20 + hasBin: true 21 + 22 + snapshots: 23 + 24 + typescript@5.9.2: {}
+22
tsconfig.json
···
··· 1 + { 2 + "compilerOptions": { 3 + /* Base Options: */ 4 + "esModuleInterop": true, 5 + "skipLibCheck": true, 6 + "lib": ["es2022"], 7 + "target": "es2022", 8 + "allowJs": true, 9 + "resolveJsonModule": true, 10 + "moduleDetection": "force", 11 + "isolatedModules": true, 12 + "verbatimModuleSyntax": true, 13 + "strict": true, 14 + "noUncheckedIndexedAccess": true, 15 + "noImplicitOverride": true, 16 + "module": "NodeNext", 17 + "outDir": "dist", 18 + "rootDir": "src", 19 + "sourceMap": true, 20 + "declaration": true 21 + } 22 + }