Skip to content

Instantly share code, notes, and snippets.

@achingbrain
Last active February 1, 2023 07:05
Show Gist options
  • Save achingbrain/dce4b1242406d295fed05399d9d85484 to your computer and use it in GitHub Desktop.
Save achingbrain/dce4b1242406d295fed05399d9d85484 to your computer and use it in GitHub Desktop.
TS project
// /src/index.ts
import * as multiformats from "multiformats";
console.info(multiformats)
{
"name": "ts-again",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"author": "",
"license": "ISC",
"devDependencies": {
"typescript": "^4.9.5"
},
"dependencies": {
"multiformats": "^11.0.1"
}
}
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "NodeNext",
"lib": ["ESNext", "Dom"],
"noImplicitReturns": true,
"noUnusedLocals": false,
"outDir": "dist",
"sourceMap": true,
"strict": true,
"skipLibCheck": true,
"esModuleInterop": true,
},
"compileOnSave": true,
"include": [
"./src",
"bin",
],
"exclude": ["node_modules"],
"ts-node": {
"transpileOnly": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment