Skip to content

Instantly share code, notes, and snippets.

@panzerstadt
Created May 30, 2020 06:03
Show Gist options
  • Save panzerstadt/e9e8e6f50a1724996f18f4f1244118d9 to your computer and use it in GitHub Desktop.
Save panzerstadt/e9e8e6f50a1724996f18f4f1244118d9 to your computer and use it in GitHub Desktop.
package.json that sets up Deno global namespace intellisense. run `npm run setup`, make an app.ts file, and get to work!
{
"name": "deno-with-setup",
"version": "1.0.0",
"description": "",
"main": "app.ts",
"scripts": {
"start": "deno run app.ts",
"setup": "npm run setup:tsconfig && npm run setup:deno",
"setup:tsconfig": "echo {\"compilerOptions\": { \"types\": [\"./deno.d.ts\"] }} > tsconfig.json",
"setup:deno": "deno types > deno.d.ts"
},
"keywords": [],
"author": "panzerstadt",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment