vicary
vicary
DDeno
Created by vicary on 12/16/2024 in #help
CI friendly deploy outputs?
No description
1 replies
DDeno
Created by vicary on 12/13/2024 in #help
Support Fix All in VS Code for lint errors?
With eslint and node.js I can apply eslint --fix on file save with this setting: { "editor.codeActionsOnSave": { "source.fixAll": "explicit" }. Deno's VS Code plugin doesn't seem to recognize the "Fix All" command in the command palette. How do I enable deno lint --fix on file save?
1 replies
DDeno
Created by vicary on 12/6/2024 in #help
How to build WASM from Rust?
No description
3 replies
DDeno
Created by vicary on 11/17/2024 in #help
How to specify/identify TypeScript version?
No description
2 replies
DDeno
Created by vicary on 11/7/2024 in #help
Vendoring node_modules in Deploy?
There is a node compat issue #26733 blocking me from going live in Deno Deploy, is it possible to vendor npm packages and deploy patched versions as a workaround for the moment?
1 replies
DDeno
Created by vicary on 11/5/2024 in #help
How to locate a deep dependency?
I have a Fresh project with some NPM dependencies. One day the following warning pops up every time the server starts:
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
Browserslist: caniuse-lite is outdated. Please run:
npx update-browserslist-db@latest
Why you should do it regularly: https://github.com/browserslist/update-db#readme
The following command doesn't work because update-browserslist-db assumes a package.json.
$ deno run npm:update-browserslist-db@latest

update-browserslist-db: Cannot find package.json. Is this the right directory to run `npx update-browserslist-db` in?
$ deno run npm:update-browserslist-db@latest

update-browserslist-db: Cannot find package.json. Is this the right directory to run `npx update-browserslist-db` in?
Next thing I could try is upgrading the relevant module in my deno.json, how to I find the module depending on browserslist down their dependency tree?
3 replies
DDeno
Created by vicary on 3/11/2024 in #help
Is there a way to pull a module from x in favour of jsr?
I have ported my module @vicary/fresh-graphql to JSR and I would like to redirect my users go JSR instead of the unmaintained version in x. Is there a way to do that?
5 replies
DDeno
Created by vicary on 2/28/2024 in #help
Sorting tailwindcss class names with prettier plugin?
When developing in Fresh, I would like to have my class names automatically sorted with the official prettier plugin. How do I enable prettier plugins in a Deno project?
2 replies
DDeno
Created by vicary on 2/23/2024 in #help
Deno fmt with verbatimModuleSyntax?
Currently Deno fmt sorts verbatim imports alphabetically, this is conflicting with the Organize Imports in VS Code where it sorts import { type ... } entries individually at the end. Example:
// VS Code
import {
bar,
foo,
type Bar,
type Foo
} from "module";

// Deno fmt
import {
type Bar,
bar,
type Foo,
foo
} from "module";
// VS Code
import {
bar,
foo,
type Bar,
type Foo
} from "module";

// Deno fmt
import {
type Bar,
bar,
type Foo,
foo
} from "module";
When combined with the following VS Code option, all of the files flashes between the two formats in random order depending on how formatOnSave is configured.
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
Is it possible to add an option for Deno fmt, either disabling that part or expose an option to align with VS Code?
2 replies
DDeno
Created by vicary on 2/21/2024 in #help
NPM imports fail on JSON require
When importing modules via npm: protocol, the embedded esbuild will throw the following error if the module tries to require("package.json") .
Error: Build failed with 1 error:
../../../../../Library/Caches/deno/deno_esbuild/{module}@{version}/node_modules/{module}/package.json:2:8: ERROR: Expected ";" but found ":"
Error: Build failed with 1 error:
../../../../../Library/Caches/deno/deno_esbuild/{module}@{version}/node_modules/{module}/package.json:2:8: ERROR: Expected ";" but found ":"
In my case, the problematic module is checkout-sdk-node. Is there known workaround for this?
2 replies