mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-01-06 04:50:03 -06:00
chore(nx/turndown-plugin): fix compilation
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
{
|
||||
"jsc": {
|
||||
"target": "es2017",
|
||||
"parser": {
|
||||
"syntax": "typescript",
|
||||
"decorators": true,
|
||||
"dynamicImport": true
|
||||
},
|
||||
"transform": {
|
||||
"decoratorMetadata": true,
|
||||
"legacyDecorator": true
|
||||
},
|
||||
"keepClassNames": true,
|
||||
"externalHelpers": true,
|
||||
"loose": true
|
||||
},
|
||||
"module": {
|
||||
"type": "es6"
|
||||
},
|
||||
"sourceMaps": true,
|
||||
"exclude": ["jest.config.ts",".*\\.spec.tsx?$",".*\\.test.tsx?$","./src/jest-setup.ts$","./**/jest-setup.ts$",".*.js$"]
|
||||
}
|
||||
@@ -19,7 +19,7 @@
|
||||
"sourceRoot": "packages/turndown-plugin-gfm/src",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/js:swc",
|
||||
"executor": "@nx/esbuild:esbuild",
|
||||
"outputs": [
|
||||
"{options.outputPath}"
|
||||
],
|
||||
@@ -27,8 +27,10 @@
|
||||
"outputPath": "packages/turndown-plugin-gfm/dist",
|
||||
"main": "packages/turndown-plugin-gfm/src/index.js",
|
||||
"tsConfig": "packages/turndown-plugin-gfm/tsconfig.lib.json",
|
||||
"skipTypeCheck": true,
|
||||
"stripLeadingPaths": true
|
||||
"format": [
|
||||
"esm"
|
||||
],
|
||||
"declarationRootDir": "packages/turndown-plugin-gfm/src"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
export function turndownPluginGfm() {
|
||||
return 'turndown-plugin-gfm';
|
||||
}
|
||||
Reference in New Issue
Block a user