wauterboi
wauterboi
DDeno
Created by wauterboi on 3/16/2024 in #help
ImportTypeScript API + get value of `compilerOptions` with default options from `tsconfig.json`?
Hello, I'm trying to figure out the proper way to do a few things: 1. What's the correct way to import the TypeScript API in Deno? At the moment, I'm importing from npm because I can't find any official TypeScript module in Deno. 2. What's the best way to read the compilerOptions tsconfig.json such that anything not set gets its default value? On a cursory glance, it would see like I can easily import the JSON, and I would feed it to convertCompilerOptionsFromJson, but I have no idea how to import, which is also why I'm asking 1. Even if this is an XY problem, I think that learning about the import maps and Deno ecosystem is worthwhile.
3 replies
DDeno
Created by wauterboi on 8/14/2023 in #help
Deno for SASS dependencies?
I'm trying to understand how I would migrate from Jekyll and NPM to Lume and Deno. Specifically, I used NPM to install some dependencies:
{
"dependencies": {
"breakpoint-sass": "^3.0.0",
"normalize-scss": "^7.0.1"
}
}
{
"dependencies": {
"breakpoint-sass": "^3.0.0",
"normalize-scss": "^7.0.1"
}
}
I would then instruct Jekyll to include node_modules when attempting to resolve SCSS filepaths. I'm not sure what the approach would be for Deno. Since these aren't libraries I'm actually using within my code, it seems inappropriate to stick them inside import maps. Would the solution be to use package.json and install using NPM as normal, or is there a better way to handle these SASS frameworks?
3 replies