mirror of
https://github.com/notion-enhancer/notion-enhancer.git
synced 2025-04-10 15:39:01 +00:00
merge branches main and dev
merge branches main and dev
This commit is contained in:
commit
e1ac1bfcd6
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "notion-enhancer",
|
"name": "notion-enhancer",
|
||||||
"version": "0.11.0-dev",
|
"version": "0.11.0",
|
||||||
"author": "dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)",
|
"author": "dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)",
|
||||||
"description": "an enhancer/customiser for the all-in-one productivity workspace notion.so",
|
"description": "an enhancer/customiser for the all-in-one productivity workspace notion.so",
|
||||||
"homepage": "https://github.com/notion-enhancer/desktop",
|
"homepage": "https://github.com/notion-enhancer/desktop",
|
||||||
@ -8,7 +8,6 @@
|
|||||||
"bin": {
|
"bin": {
|
||||||
"notion-enhancer": "bin.mjs"
|
"notion-enhancer": "bin.mjs"
|
||||||
},
|
},
|
||||||
"private": true,
|
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.x.x"
|
"node": ">=16.x.x"
|
||||||
|
@ -68,7 +68,7 @@ export default async function (
|
|||||||
.map((file) => file.path)
|
.map((file) => file.path)
|
||||||
.filter((file) => file.endsWith('.js') && !file.includes('node_modules'));
|
.filter((file) => file.endsWith('.js') && !file.includes('node_modules'));
|
||||||
for (const file of notionFiles) {
|
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`);
|
replacer = path.resolve(`${__dirname(import.meta)}/replacers/${target}.mjs`);
|
||||||
if (fs.existsSync(replacer)) {
|
if (fs.existsSync(replacer)) {
|
||||||
await (await import(`./replacers/${target}.mjs`)).default(file);
|
await (await import(`./replacers/${target}.mjs`)).default(file);
|
||||||
|
Loading…
Reference in New Issue
Block a user