Skip to content

Instantly share code, notes, and snippets.

@iugo
Created December 8, 2022 03:33
Show Gist options
  • Select an option

  • Save iugo/1dde0cb200e57f64df71c31ca0400b16 to your computer and use it in GitHub Desktop.

Select an option

Save iugo/1dde0cb200e57f64df71c31ca0400b16 to your computer and use it in GitHub Desktop.
{
"compilerOptions": {
"strict": true
},
"importMap": "./import_map.json"
}
{
"imports": {
"colors": "https://deno.land/std@0.167.0/fmt/colors.ts"
}
}
import { blue } from 'colors';
console.log(blue('hehe'));
// deno compile --output=bin -c deno.json main.ts
// ./bin (error, lost import map)
// deno compile --output=bin --import-map import_map.json main.ts
// ./bin (works!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment