@jaredwray/fumanchu 1.1.3 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +11 -0
- package/package.json +6 -1
package/index.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import HandlebarsLib from 'handlebars';
|
|
2
|
+
|
|
3
|
+
const handlebars = HandlebarsLib.create();
|
|
4
|
+
|
|
5
|
+
import('./helpers.js').then((module) => {
|
|
6
|
+
const helpers = module.default;
|
|
7
|
+
helpers({ handlebars: handlebars });
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// Exporting for ESM
|
|
11
|
+
export default handlebars;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jaredwray/fumanchu",
|
|
3
3
|
"description": "Handlebars + Helpers = Fumanchu",
|
|
4
|
-
"version": "1.1
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"homepage": "https://github.com/jaredwray/fumanchu",
|
|
6
6
|
"author": "Jared Wray (me@jaredwray.com)",
|
|
7
7
|
"keywords": [
|
|
@@ -89,6 +89,7 @@
|
|
|
89
89
|
"license": "MIT",
|
|
90
90
|
"files": [
|
|
91
91
|
"index.js",
|
|
92
|
+
"index.mjs",
|
|
92
93
|
"helpers.js",
|
|
93
94
|
"lib",
|
|
94
95
|
"dist",
|
|
@@ -97,6 +98,10 @@
|
|
|
97
98
|
"source": "index.js",
|
|
98
99
|
"main": "index.js",
|
|
99
100
|
"types": "index.d.ts",
|
|
101
|
+
"exports": {
|
|
102
|
+
"import": "./index.mjs",
|
|
103
|
+
"require": "./index.js"
|
|
104
|
+
},
|
|
100
105
|
"engines": {
|
|
101
106
|
"node": ">=14"
|
|
102
107
|
},
|