@jaredwray/fumanchu 2.1.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.1.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,19 +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",
94
+ "source": "dist/index.js",
95
+ "main": "dist/index.js",
96
+ "types": "dist/index.d.ts",
101
97
  "scripts": {
102
- "test": "c8 mocha --reporter list",
103
- "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",
104
102
  "clean": "rimraf ./node_modules ./coverage yarn.lock package-lock.json ./dist ./dist-site",
105
103
  "website:build": "rimraf ./site/readme.md && npx -y docula build -s ./site -o ./dist-site",
106
104
  "website:serve": "rimraf ./site/readme.md && npx -y docula serve -s ./site -o ./dist-site"
@@ -130,7 +128,7 @@
130
128
  "kind-of": "^6.0.3",
131
129
  "lazy-cache": "^2.0.2",
132
130
  "logging-helpers": "^1.0.0",
133
- "micromatch": "^4.0.7",
131
+ "micromatch": "^4.0.8",
134
132
  "path": "^0.12.7",
135
133
  "relative": "^3.0.2",
136
134
  "remarkable": "^2.0.1",
@@ -141,11 +139,14 @@
141
139
  "devDependencies": {
142
140
  "c8": "^10.1.2",
143
141
  "chai": "^4.3.10",
142
+ "docula": "^0.9.4",
144
143
  "lodash": "^4.17.21",
145
144
  "mocha": "^10.7.3",
146
145
  "rimraf": "^6.0.1",
147
146
  "template-helpers": "^1.0.1",
148
147
  "templates": "^1.2.9",
149
- "typescript": "^5.5.4"
148
+ "tsup": "^8.3.5",
149
+ "typecript": "^0.0.1-security",
150
+ "typescript": "^5.6.3"
150
151
  }
151
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;