Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 35 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
},
"dependencies": {
"diff": "^7.0.0",
"hogan.js": "3.0.2"
"@profoundlogic/hogan": "^3.0.4"
},
"optionalDependencies": {
"highlight.js": "11.9.0"
Expand Down
8 changes: 4 additions & 4 deletions scripts/hulk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import * as path from 'path';
import * as fs from 'fs';

import * as hogan from 'hogan.js';
import * as hogan from '@profoundlogic/hogan';

Check failure on line 19 in scripts/hulk.ts

View workflow job for this annotation

GitHub Actions / test-and-publish / build (20.x)

Could not find a declaration file for module '@profoundlogic/hogan'. '/home/runner/work/diff2html/diff2html/node_modules/@profoundlogic/hogan/lib/hogan.js' implicitly has an 'any' type.

Check failure on line 19 in scripts/hulk.ts

View workflow job for this annotation

GitHub Actions / test-and-publish / build (16.x)

Could not find a declaration file for module '@profoundlogic/hogan'. '/home/runner/work/diff2html/diff2html/node_modules/@profoundlogic/hogan/lib/hogan.js' implicitly has an 'any' type.

Check failure on line 19 in scripts/hulk.ts

View workflow job for this annotation

GitHub Actions / test-and-publish / build (22.x)

Could not find a declaration file for module '@profoundlogic/hogan'. '/home/runner/work/diff2html/diff2html/node_modules/@profoundlogic/hogan/lib/hogan.js' implicitly has an 'any' type.

Check failure on line 19 in scripts/hulk.ts

View workflow job for this annotation

GitHub Actions / test-and-publish / build (18.x)

Could not find a declaration file for module '@profoundlogic/hogan'. '/home/runner/work/diff2html/diff2html/node_modules/@profoundlogic/hogan/lib/hogan.js' implicitly has an 'any' type.
import nopt from 'nopt';
import * as mkderp from 'mkdirp';

Expand Down Expand Up @@ -118,7 +118,7 @@
case 'amd':
return `define(${
!options.outputdir ? `"${path.join(path.dirname(file), name)}", ` : ''
}["hogan.js"], function(Hogan) { return ${hoganTemplateString}; });`;
}["@profoundlogic/hogan"], function(Hogan) { return ${hoganTemplateString}; });`;

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

case 'ts':
return `import * as Hogan from "hogan.js";
return `import * as Hogan from "@profoundlogic/hogan";
type CompiledTemplates = { [name: string]: Hogan.Template };
export const ${variableName}: CompiledTemplates = {};
${content}`;
Expand Down
2 changes: 1 addition & 1 deletion src/hoganjs-utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Hogan from 'hogan.js';
import * as Hogan from '@profoundlogic/hogan';

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

Expand Down
Loading