MariusVatasoiu
MariusVatasoiu
DDeno
Created by GuillaumeRobinInarix on 3/22/2024 in #help
Import package from Azure DevOps repository
I had recently the same issue. Couldn't find a solution. I was expecting that by setting the npm registry and the PAT with DENO_AUTH_TOKENS to work. No luck! Might be related with the URL generated by Deno to download the package vs. the URL npm is using. As a work around, I had to use npm install for npm packages, which is not ideal.
11 replies
DDeno
Created by MariusVatasoiu on 3/19/2024 in #help
esbuild-deno-loader with npm private registry
My problem might be related with https://github.com/denoland/deno/issues/19900 I think I can't use a private npm registry that requires auth.
8 replies
DDeno
Created by MariusVatasoiu on 3/19/2024 in #help
esbuild-deno-loader with npm private registry
my deno.json looks somthing like this:
{
"imports": {
"lit": "npm:lit@^2.0.0"
}
}
{
"imports": {
"lit": "npm:lit@^2.0.0"
}
}
// buil.ts
import * as esbuild from 'npm:esbuild@0.20.2';
// Import the WASM build on platforms where running subprocesses is not
// permitted, such as Deno Deploy, or when running without `--allow-run`.
// import * as esbuild from "https://deno.land/x/esbuild@0.20.2/wasm.js";

import { denoPlugins } from 'jsr:@luca/esbuild-deno-loader@^0.10.3';

const result = await esbuild.build({
plugins: [...denoPlugins()],
entryPoints: ['./static/index.js'],
outfile: './dist/static.esm.js',
bundle: true,
format: 'esm'
});

console.log(result.outputFiles);

esbuild.stop();
// buil.ts
import * as esbuild from 'npm:esbuild@0.20.2';
// Import the WASM build on platforms where running subprocesses is not
// permitted, such as Deno Deploy, or when running without `--allow-run`.
// import * as esbuild from "https://deno.land/x/esbuild@0.20.2/wasm.js";

import { denoPlugins } from 'jsr:@luca/esbuild-deno-loader@^0.10.3';

const result = await esbuild.build({
plugins: [...denoPlugins()],
entryPoints: ['./static/index.js'],
outfile: './dist/static.esm.js',
bundle: true,
format: 'esm'
});

console.log(result.outputFiles);

esbuild.stop();
8 replies
DDeno
Created by MariusVatasoiu on 3/19/2024 in #help
esbuild-deno-loader with npm private registry
And, since the npm: specifier is built in the runtime, I'm expecting to be some config related with the runtime
8 replies
DDeno
Created by MariusVatasoiu on 3/19/2024 in #help
esbuild-deno-loader with npm private registry
I'm using Luca's plugin: https://github.com/lucacasonato/esbuild_deno_loader But from the source code I don't see anything related with the npmrc file
8 replies
DDeno
Created by MariusVatasoiu on 3/19/2024 in #help
esbuild-deno-loader with npm private registry
Is this something that the loader should do or the runtime itself?
8 replies
DDeno
Created by MariusVatasoiu on 4/6/2023 in #help
Issue using scopes to change a version
7 replies
DDeno
Created by MariusVatasoiu on 4/6/2023 in #help
Issue using scopes to change a version
The domain is fine, it's deno.land. Maybe he had a breaking change with std library and changed the path, which now seems once again broken, because the std has changed. I still think there is an issue with scopes mechanism.
7 replies
DDeno
Created by MariusVatasoiu on 4/6/2023 in #help
Issue using scopes to change a version
It's weird, because he has a simple import:
import { load } from "https://deno.land/std/encoding/_yaml/loader/loader.ts";
import { load } from "https://deno.land/std/encoding/_yaml/loader/loader.ts";
7 replies