SB
Mono Repo - Enable Paths
if it helps, i get this message
vscode ➜ /workspaces/backend/supabase/functions (feat/sunsynk-support) $ deno test --allow-net --allow-read --allow-env --import-map=./import_map.json ./test/*
error: Specifying an import map in a workspace via CLI flags is not implemented.
removing the package.json from the root of the mono repo, and this command works
15 replies
Mono Repo - Enable Paths
then if i change the workspace configuration
Enabling import suggestions for: https://deno.land
Refreshing configuration tree...
Resolved package.json: "/workspaces/backend/package.json"
Resolved import map: "file:///workspaces/backend/supabase/functions/import_map.json"
Starting Deno language server...
version: 1.45.0 (release, aarch64-unknown-linux-gnu)
executable: /usr/local/bin/deno
Connected to "Visual Studio Code" 1.91.0
Enabling import suggestions for: https://deno.land
Refreshing configuration tree...
Resolved package.json: "/workspaces/backend/package.json"
Resolved import map: "file:///workspaces/backend/supabase/functions/import_map.json"
Server ready.
{
"enable": true,
"disablePaths": [],
"enablePaths": [
"supabase-functions"
],
"cache": null,
"cacheOnSave": true,
"certificateStores": null,
"config": null,
"importMap": "./supabase/functions/import_map.json",
"codeLens": {
"implementations": false,
"references": false,
"referencesAllFunctions": false,
"test": false
},
....
15 replies
Mono Repo - Enable Paths
Starting Deno language server...
version: 1.45.0 (release, aarch64-unknown-linux-gnu)
executable: /usr/local/bin/deno
Connected to "Visual Studio Code" 1.91.0
Enabling import suggestions for: https://deno.land
Refreshing configuration tree...
Resolved package.json: "/workspaces/backend/package.json"
Could not set npm package requirements: Error getting response at https://registry.npmjs.org/@types/node for package "@types/node": An npm specifier not found in cache: "@types/node", --cached-only is specified.
Could not set npm package requirements: Error getting response at https://registry.npmjs.org/@types/node for package "@types/node": An npm specifier not found in cache: "@types/node", --cached-only is specified.
Server ready.
15 replies
Does Deno NPM support other registries like github npm registry?
https://github.com/denoland/manual/pull/483
looking at this pull, it doesnt seem it is supported?
8 replies
Does Deno NPM support other registries like github npm registry?
Hi @.bartlomieju , thank you for the information. adapting the NPM_CONFIG_REGISTRY var works however i now have an authenication issues similer to these two issues
https://github.com/denoland/deno/issues/19900
https://github.com/denoland/deno/issues/20195
8 replies
Does Deno NPM support other registries like github npm registry?
I mean being able to use https://npm.pkg.github.com for npm packages rather than https://registry.npmjs.org/
8 replies