vicary
vicary
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