Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
refactor(express-partial-content): port to esbuild
Elian Doran45c946352e01
diff --git a/packages/express-partial-content/.swcrc b/packages/express-partial-content/.swcrcdeleted file mode 100644index 73fa88b8db..0000000000--- a/packages/express-partial-content/.swcrc+++ /dev/null@@ -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$"]-}diff --git a/packages/express-partial-content/package.json b/packages/express-partial-content/package.jsonindex 96c49d63a5..d4a78437be 100644--- a/packages/express-partial-content/package.json+++ b/packages/express-partial-content/package.json@@ -5,16 +5,16 @@"version": "1.1.0","type": "module","private": true,- "main": "./dist/index.js",- "module": "./dist/index.js",+ "main": "./dist/main.js",+ "module": "./dist/main.js","types": "./dist/index.d.ts","exports": {"./package.json": "./package.json",".": {"development": "./src/index.ts","types": "./dist/index.d.ts",- "import": "./dist/index.js",- "default": "./dist/index.js"+ "import": "./dist/main.js",+ "default": "./dist/main.js"}},"keywords": [@@ -27,16 +27,29 @@"name": "express-partial-content","targets": {"build": {- "executor": "@nx/js:swc",+ "executor": "@nx/esbuild:esbuild","outputs": ["{options.outputPath}"],+ "defaultConfiguration": "production","options": {+ "main": "packages/express-partial-content/src/index.ts","outputPath": "packages/express-partial-content/dist",+ "outputFileName": "main.js","tsConfig": "packages/express-partial-content/tsconfig.lib.json",- "packageJson": "packages/express-partial-content/package.json",- "main": "packages/express-partial-content/src/index.ts",- "stripLeadingPaths": true+ "platform": "node",+ "format": [+ "esm"+ ],+ "declarationRootDir": "packages/express-partial-content/src"+ },+ "configurations": {+ "development": {+ "minify": false+ },+ "production": {+ "minify": true+ }}}}