mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
refactor(express-partial-content): port to esbuild
This commit is contained in:
parent
9d6758b315
commit
45c946352e
@ -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": "commonjs"
|
|
||||||
},
|
|
||||||
"sourceMaps": true,
|
|
||||||
"exclude": ["jest.config.ts",".*\\.spec.tsx?$",".*\\.test.tsx?$","./src/jest-setup.ts$","./**/jest-setup.ts$",".*.js$"]
|
|
||||||
}
|
|
@ -5,16 +5,16 @@
|
|||||||
"version": "1.1.0",
|
"version": "1.1.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/main.js",
|
||||||
"module": "./dist/index.js",
|
"module": "./dist/main.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
"./package.json": "./package.json",
|
"./package.json": "./package.json",
|
||||||
".": {
|
".": {
|
||||||
"development": "./src/index.ts",
|
"development": "./src/index.ts",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"import": "./dist/index.js",
|
"import": "./dist/main.js",
|
||||||
"default": "./dist/index.js"
|
"default": "./dist/main.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@ -27,16 +27,29 @@
|
|||||||
"name": "express-partial-content",
|
"name": "express-partial-content",
|
||||||
"targets": {
|
"targets": {
|
||||||
"build": {
|
"build": {
|
||||||
"executor": "@nx/js:swc",
|
"executor": "@nx/esbuild:esbuild",
|
||||||
"outputs": [
|
"outputs": [
|
||||||
"{options.outputPath}"
|
"{options.outputPath}"
|
||||||
],
|
],
|
||||||
|
"defaultConfiguration": "production",
|
||||||
"options": {
|
"options": {
|
||||||
"outputPath": "packages/express-partial-content/dist",
|
|
||||||
"tsConfig": "packages/express-partial-content/tsconfig.lib.json",
|
|
||||||
"packageJson": "packages/express-partial-content/package.json",
|
|
||||||
"main": "packages/express-partial-content/src/index.ts",
|
"main": "packages/express-partial-content/src/index.ts",
|
||||||
"stripLeadingPaths": true
|
"outputPath": "packages/express-partial-content/dist",
|
||||||
|
"outputFileName": "main.js",
|
||||||
|
"tsConfig": "packages/express-partial-content/tsconfig.lib.json",
|
||||||
|
"platform": "node",
|
||||||
|
"format": [
|
||||||
|
"esm"
|
||||||
|
],
|
||||||
|
"declarationRootDir": "packages/express-partial-content/src"
|
||||||
|
},
|
||||||
|
"configurations": {
|
||||||
|
"development": {
|
||||||
|
"minify": false
|
||||||
|
},
|
||||||
|
"production": {
|
||||||
|
"minify": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user