Skip to content

Commit 5d93b45

Browse files
committed
switching to @profoundlogic/hogan
1 parent 9aa780e commit 5d93b45

File tree

4 files changed

+41
-51
lines changed

4 files changed

+41
-51
lines changed

package-lock.json

Lines changed: 35 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
},
8383
"dependencies": {
8484
"diff": "^7.0.0",
85-
"hogan.js": "3.0.2"
85+
"@profoundlogic/hogan": "^3.0.4"
8686
},
8787
"optionalDependencies": {
8888
"highlight.js": "11.9.0"

scripts/hulk.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import * as path from 'path';
1717
import * as fs from 'fs';
1818

19-
import * as hogan from 'hogan.js';
19+
import * as hogan from '@profoundlogic/hogan';
2020
import nopt from 'nopt';
2121
import * as mkderp from 'mkdirp';
2222

@@ -118,7 +118,7 @@ function wrap(file: string, name: string, openedFile: string): string {
118118
case 'amd':
119119
return `define(${
120120
!options.outputdir ? `"${path.join(path.dirname(file), name)}", ` : ''
121-
}["hogan.js"], function(Hogan) { return ${hoganTemplateString}; });`;
121+
}["@profoundlogic/hogan"], function(Hogan) { return ${hoganTemplateString}; });`;
122122

123123
case 'node':
124124
// If we have a template per file the export will expose the template directly
@@ -139,12 +139,12 @@ function prepareOutput(content: string): string {
139139
case 'node':
140140
return `(function() {
141141
if (!!!global.${variableName}) global.${variableName} = {};
142-
var Hogan = require("hogan.js");
142+
var Hogan = require("@profoundlogic/hogan);
143143
${content}
144144
${!options.outputdir ? `module.exports = global.${variableName};\n` : ''})();`;
145145

146146
case 'ts':
147-
return `import * as Hogan from "hogan.js";
147+
return `import * as Hogan from "@profoundlogic/hogan";
148148
type CompiledTemplates = { [name: string]: Hogan.Template };
149149
export const ${variableName}: CompiledTemplates = {};
150150
${content}`;

src/hoganjs-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Hogan from 'hogan.js';
1+
import * as Hogan from '@profoundlogic/hogan';
22

33
import { defaultTemplates } from './diff2html-templates';
44

0 commit comments

Comments
 (0)