mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
fix(monorepo/server): dist not running due to gfm package
This commit is contained in:
parent
d688f7f0a0
commit
3df195aac1
@ -71,7 +71,6 @@ try {
|
|||||||
fs.copySync(dir, path.normalize(path.join(PUBLIC_DIR, path.basename(dir))));
|
fs.copySync(dir, path.normalize(path.join(PUBLIC_DIR, path.basename(dir))));
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.copySync(path.join(serverDir, "build-ts", "apps", "server", "src"), path.join(DEST_DIR, "src"));
|
|
||||||
fs.copySync(path.join(rootDir, "packages", "turndown-plugin-gfm", "src"), path.join(DEST_DIR, "src", "public", "app-dist", "turndown-plugin-gfm"));
|
fs.copySync(path.join(rootDir, "packages", "turndown-plugin-gfm", "src"), path.join(DEST_DIR, "src", "public", "app-dist", "turndown-plugin-gfm"));
|
||||||
|
|
||||||
console.log("Copying complete!")
|
console.log("Copying complete!")
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import TurndownService, { type Rule } from "turndown";
|
import TurndownService, { type Rule } from "turndown";
|
||||||
import { gfm } from "../../../../../packages/turndown-plugin-gfm/src/gfm.js";
|
import { gfm } from "@triliumnext/turndown-plugin-gfm";
|
||||||
|
|
||||||
let instance: TurndownService | null = null;
|
let instance: TurndownService | null = null;
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"module": "NodeNext",
|
"module": "NodeNext",
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"outDir": "./build-ts",
|
"outDir": "./build",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"resolveJsonModule": true,
|
"resolveJsonModule": true,
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
import config from './rollup.config.js';
|
|
||||||
|
|
||||||
export default config({
|
|
||||||
output: {
|
|
||||||
format: 'cjs',
|
|
||||||
file: 'lib/turndown-plugin-gfm.browser.cjs.js',
|
|
||||||
},
|
|
||||||
});
|
|
@ -1,8 +0,0 @@
|
|||||||
import config from './rollup.config.js';
|
|
||||||
|
|
||||||
export default config({
|
|
||||||
output: {
|
|
||||||
format: 'es',
|
|
||||||
file: 'lib/turndown-plugin-gfm.browser.es.js',
|
|
||||||
},
|
|
||||||
});
|
|
@ -1,8 +0,0 @@
|
|||||||
import config from './rollup.config.js';
|
|
||||||
|
|
||||||
export default config({
|
|
||||||
output: {
|
|
||||||
format: 'cjs',
|
|
||||||
file: 'lib/turndown-plugin-gfm.cjs.js',
|
|
||||||
},
|
|
||||||
});
|
|
@ -1,8 +0,0 @@
|
|||||||
import config from './rollup.config.js';
|
|
||||||
|
|
||||||
export default config({
|
|
||||||
output: {
|
|
||||||
format: 'es',
|
|
||||||
file: 'lib/turndown-plugin-gfm.es.js',
|
|
||||||
},
|
|
||||||
});
|
|
@ -1,9 +0,0 @@
|
|||||||
import config from './rollup.config.js';
|
|
||||||
|
|
||||||
export default config({
|
|
||||||
output: {
|
|
||||||
format: 'iife',
|
|
||||||
file: 'dist/turndown-plugin-gfm.js',
|
|
||||||
name: 'turndownPluginGfm'
|
|
||||||
},
|
|
||||||
});
|
|
@ -1,6 +0,0 @@
|
|||||||
export default function(config) {
|
|
||||||
return {
|
|
||||||
input: 'src/gfm.js',
|
|
||||||
output: config.output,
|
|
||||||
};
|
|
||||||
}
|
|
@ -6,7 +6,7 @@
|
|||||||
},
|
},
|
||||||
"version": "1.0.61",
|
"version": "1.0.61",
|
||||||
"author": "Dom Christie",
|
"author": "Dom Christie",
|
||||||
"main": "lib/turndown-plugin-gfm.cjs.js",
|
"main": "src/gfm.js",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^17.0.1",
|
"browserify": "^17.0.1",
|
||||||
"rollup": "^4.36.0",
|
"rollup": "^4.36.0",
|
||||||
@ -34,11 +34,6 @@
|
|||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build-all": "npm run build-cjs && npm run build-es && npm run build-iife",
|
|
||||||
"build": "rollup -c config/rollup.config.cjs.js",
|
|
||||||
"build-cjs": "rollup -c config/rollup.config.cjs.js && rollup -c config/rollup.config.browser.cjs.js",
|
|
||||||
"build-es": "rollup -c config/rollup.config.es.js && rollup -c config/rollup.config.browser.es.js",
|
|
||||||
"build-iife": "rollup -c config/rollup.config.iife.js",
|
|
||||||
"build-test": "browserify test/turndown-plugin-gfm-test.js --outfile test/turndown-plugin-gfm-test.browser.js"
|
"build-test": "browserify test/turndown-plugin-gfm-test.js --outfile test/turndown-plugin-gfm-test.browser.js"
|
||||||
},
|
},
|
||||||
"gitHead": "05a29b450962bf05a8642bbd39446a1f679a96ba"
|
"gitHead": "05a29b450962bf05a8642bbd39446a1f679a96ba"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user