@jaredwray/fumanchu 2.0.0 → 3.0.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jaredwray/fumanchu",
3
3
  "description": "Handlebars + Helpers = Fumanchu",
4
- "version": "2.0.0",
4
+ "version": "3.0.0",
5
5
  "homepage": "https://github.com/jaredwray/fumanchu",
6
6
  "author": "Jared Wray (me@jaredwray.com)",
7
7
  "keywords": [
@@ -88,26 +88,17 @@
88
88
  },
89
89
  "license": "MIT",
90
90
  "files": [
91
- "index.js",
92
- "index.mjs",
93
- "helpers.js",
94
- "lib",
95
91
  "dist",
96
- "index.d.ts"
92
+ "license"
97
93
  ],
98
- "source": "index.js",
99
- "main": "index.js",
100
- "types": "index.d.ts",
101
- "exports": {
102
- "import": "./index.mjs",
103
- "require": "./index.js"
104
- },
105
- "engines": {
106
- "node": ">=20"
107
- },
94
+ "source": "dist/index.js",
95
+ "main": "dist/index.js",
96
+ "types": "dist/index.d.ts",
108
97
  "scripts": {
109
- "test": "c8 mocha --reporter list",
110
- "test:ci": "c8 --reporter=lcov mocha --reporter list",
98
+ "test": "npm run build && c8 mocha --reporter list",
99
+ "test:ci": "npm run build && c8 --reporter=lcov mocha --reporter list",
100
+ "build": "rimraf ./dist && tsup ./index.ts --format cjs --dts --clean",
101
+ "prepare": "npm run build",
111
102
  "clean": "rimraf ./node_modules ./coverage yarn.lock package-lock.json ./dist ./dist-site",
112
103
  "website:build": "rimraf ./site/readme.md && npx -y docula build -s ./site -o ./dist-site",
113
104
  "website:serve": "rimraf ./site/readme.md && npx -y docula serve -s ./site -o ./dist-site"
@@ -137,7 +128,7 @@
137
128
  "kind-of": "^6.0.3",
138
129
  "lazy-cache": "^2.0.2",
139
130
  "logging-helpers": "^1.0.0",
140
- "micromatch": "^4.0.7",
131
+ "micromatch": "^4.0.8",
141
132
  "path": "^0.12.7",
142
133
  "relative": "^3.0.2",
143
134
  "remarkable": "^2.0.1",
@@ -148,11 +139,14 @@
148
139
  "devDependencies": {
149
140
  "c8": "^10.1.2",
150
141
  "chai": "^4.3.10",
142
+ "docula": "^0.9.4",
151
143
  "lodash": "^4.17.21",
152
144
  "mocha": "^10.7.3",
153
145
  "rimraf": "^6.0.1",
154
146
  "template-helpers": "^1.0.1",
155
147
  "templates": "^1.2.9",
156
- "typescript": "^5.5.4"
148
+ "tsup": "^8.3.5",
149
+ "typecript": "^0.0.1-security",
150
+ "typescript": "^5.6.3"
157
151
  }
158
152
  }
package/helpers.js DELETED
@@ -1,61 +0,0 @@
1
- /*!
2
- * handlebars-helpers <https://github.com/helpers/handlebars-helpers>
3
- *
4
- * Copyright (c) 2013-2017, Jon Schlinkert, Brian Woodward.
5
- * Released under the MIT License.
6
- */
7
-
8
- 'use strict';
9
-
10
- var forIn = require('for-in');
11
- var define = require('define-property');
12
- var lib = require('./lib');
13
-
14
- /**
15
- * Expose helpers
16
- */
17
-
18
- module.exports = function helpers(groups, options) {
19
- if (typeof groups === 'string') {
20
- groups = [groups];
21
- } else if (!Array.isArray(groups)) {
22
- options = groups;
23
- groups = null;
24
- }
25
-
26
- options = options || {};
27
- var hbs = options.handlebars || options.hbs || require('handlebars');
28
- define(module.exports, 'handlebars', hbs);
29
-
30
- if (groups) {
31
- groups.forEach(function(key) {
32
- hbs.registerHelper(lib[key]);
33
- });
34
- } else {
35
- forIn(lib, function(group, key) {
36
- hbs.registerHelper(group);
37
- });
38
- }
39
-
40
- return hbs.helpers;
41
- };
42
-
43
- /**
44
- * Expose helper groups
45
- */
46
-
47
- forIn(lib, function(group, key) {
48
- define(module.exports, key, function(options) {
49
- options = options || {};
50
- var hbs = options.handlebars || options.hbs || require('handlebars');
51
- define(module.exports, 'handlebars', hbs);
52
- hbs.registerHelper(group);
53
- return hbs.helpers;
54
- });
55
- });
56
-
57
- /**
58
- * Expose `utils`
59
- */
60
-
61
- module.exports.utils = require('./lib/utils');
package/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import * as Handlebars from 'handlebars';
2
- import { handlebarHelpers } from './handlebarHelpers';
3
- export = Handlebars;
4
- export { handlebarHelpers };
package/index.js DELETED
@@ -1,8 +0,0 @@
1
- const HandlebarsLib = require('handlebars');
2
- const helpers = require('./helpers.js');
3
-
4
- const handlebars = HandlebarsLib.create();
5
- helpers({ handlebars: handlebars });
6
-
7
- module.exports = handlebars;
8
- module.exports.handlebarHelpers = helpers;
package/index.mjs DELETED
@@ -1,16 +0,0 @@
1
- import HandlebarsLib from 'handlebars';
2
-
3
- const handlebars = HandlebarsLib.create();
4
-
5
- // Variable to hold the helpers function
6
- let handlebarHelpers;
7
-
8
- import('./helpers.js').then((module) => {
9
- handlebarHelpers = module.default;
10
- handlebarHelpers({ handlebars: handlebars });
11
- });
12
-
13
- // Exporting for ESM
14
- export default handlebars;
15
- export { handlebarHelpers };
16
-