UNPKG

@jabraf/create-npm-package

Version:

A simple template for creating an NPM package

36 lines (30 loc) 854 B
{ /* From Matt Pocock: https://www.totaltypescript.com */ "compilerOptions": { /* Base Options: */ "esModuleInterop": true, "skipLibCheck": true, "target": "es2022", "allowJs": true, "resolveJsonModule": true, "moduleDetection": "force", "isolatedModules": true, "verbatimModuleSyntax": true, /* Strictness */ "strict": true, "noUncheckedIndexedAccess": true, "noImplicitOverride": true, /* If transpiling with TypeScript: */ "module": "NodeNext", "outDir": "dist", "rootDir": "src", "sourceMap": true, /* AND if you're building for a library: */ "declaration": true, /* AND if you're building for a library in a monorepo: */ "declarationMap": true, /* Other options */ /* if lib has DOM access */ "lib": ["es2022", "dom", "dom.iterable"] } }