From ad153094f7cc24734436f125c034b1608598f5e0 Mon Sep 17 00:00:00 2001 From: Fahmi Akbar Wildana Date: Thu, 9 Feb 2023 06:06:53 +0700 Subject: [PATCH] ci: Fix dependencies name `npm publish` doesn't allow custom dependency name --- module.ts | 4 ++-- package.json | 2 +- pnpm-lock.yaml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/module.ts b/module.ts index 7302207..c7f15f0 100644 --- a/module.ts +++ b/module.ts @@ -6,8 +6,8 @@ class USVString { encode = (input: string) => this.#encoder.encode(input); } -export type { ElementHandlers } from "npm:html-rewriter-wasm"; -import * as cf from "npm:html-rewriter-wasm"; +export type { ElementHandlers } from "html-rewriter-wasm"; +import * as cf from "html-rewriter-wasm"; export class HTMLRewriter { static #string = new USVString(); diff --git a/package.json b/package.json index 2d2c9e2..d86d20d 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,6 @@ }, "homepage": "https://github.com/DrSensor/safe-html-rewriter#readme", "dependencies": { - "npm:html-rewriter-wasm": "npm:html-rewriter-wasm@^0.4.1" + "html-rewriter-wasm": "^0.4.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 3166571..ed89688 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,10 +1,10 @@ lockfileVersion: 5.4 specifiers: - npm:html-rewriter-wasm: npm:html-rewriter-wasm@^0.4.1 + html-rewriter-wasm: ^0.4.1 dependencies: - npm:html-rewriter-wasm: /html-rewriter-wasm/0.4.1 + html-rewriter-wasm: 0.4.1 packages: