From 4f222a3b7374416d6e42be7438abca9546691fb4 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Fri, 31 Dec 2021 23:43:04 +1100 Subject: [PATCH 1/2] npm publish --- package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 9c8033d..b837521 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "notion-enhancer", - "version": "0.11.0-dev", + "version": "0.11.0", "author": "dragonwocky (https://dragonwocky.me/)", "description": "an enhancer/customiser for the all-in-one productivity workspace notion.so", "homepage": "https://github.com/notion-enhancer/desktop", @@ -8,7 +8,6 @@ "bin": { "notion-enhancer": "bin.mjs" }, - "private": true, "type": "module", "engines": { "node": ">=16.x.x" From 442d6d3427dfcebe87060f1bb62d944e94d8ca56 Mon Sep 17 00:00:00 2001 From: dragonwocky Date: Thu, 10 Mar 2022 21:30:46 +1100 Subject: [PATCH 2/2] fix #684: normalise target paths on windows --- pkg/apply.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apply.mjs b/pkg/apply.mjs index b51f6a8..87f58fe 100644 --- a/pkg/apply.mjs +++ b/pkg/apply.mjs @@ -68,7 +68,7 @@ export default async function ( .map((file) => file.path) .filter((file) => file.endsWith('.js') && !file.includes('node_modules')); for (const file of notionFiles) { - const target = file.slice(status.executable.length + 1, -3), + const target = file.slice(status.executable.length + 1, -3).replace(/\\/g, '/'), replacer = path.resolve(`${__dirname(import.meta)}/replacers/${target}.mjs`); if (fs.existsSync(replacer)) { await (await import(`./replacers/${target}.mjs`)).default(file);