Skip to content

Commit

Permalink
Add trial ESM support...
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanaelA committed Feb 21, 2023
1 parent b1fa863 commit f8a9321
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/esm/fluentReports.mjs
@@ -0,0 +1,2 @@
import cjsModule from '../fluentReports.js';
export const Report = cjsModule.Report;
5 changes: 5 additions & 0 deletions lib/esm/fluentReportsBuilder.mjs
@@ -0,0 +1,5 @@
import cjsModule from '../fluentReportsBuilder.js';

export const Report = cjsModule.Report;
export const ReportBuilder = cjsModule.ReportBuilder;
export const BlobStream = cjsModule.BlobStream;
4 changes: 4 additions & 0 deletions lib/esm/package.json
@@ -0,0 +1,4 @@
{
"type": "module",
"main": "fluentReports.mjs"
}
11 changes: 9 additions & 2 deletions package.json
Expand Up @@ -31,6 +31,7 @@
},
"license": "MIT",
"lib": "lib",
"type": "commonjs",
"bugs": {
"url": "https://github.com/Nathanaela/fluentreports/issues"
},
Expand All @@ -41,11 +42,17 @@
"type": "git",
"url": "https://github.com/Nathanaela/fluentreports.git"
},
"main": "lib/fluentReports",
"version": "1.4.1",
"main": "./lib/fluentReports.js",
"version": "1.4.2",
"engines": {
"node": "*"
},
"files": [
"./lib/fluentReports.js",
"./lib/fluentReports.mjs",
"./lib/fluentReports.pdfkit.js",
"./lib/fluentReportsBuilder.js"
],
"devDependencies": {
"browser-pack-flat": "^3.4.2",
"common-shakeify": "^0.6.2",
Expand Down

0 comments on commit f8a9321

Please sign in to comment.