Skip to content

Commit

Permalink
- Reverted handlebars import
Browse files Browse the repository at this point in the history
- Cleanup of configuration
  • Loading branch information
ferdikoomen committed Jan 6, 2022
1 parent 07c98cf commit fe294e9
Show file tree
Hide file tree
Showing 7 changed files with 122 additions and 453 deletions.
3 changes: 0 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,4 @@ updates:
open-pull-requests-limit: 10
ignore:
- dependency-name: "@types/node-fetch"
- dependency-name: "abort-controller"
- dependency-name: "cross-blob"
- dependency-name: "form-data"
- dependency-name: "node-fetch"
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
"@babel/core": "7.16.7",
"@babel/preset-env": "7.16.7",
"@babel/preset-typescript": "7.16.7",
"@rollup/plugin-alias": "3.1.9",
"@rollup/plugin-commonjs": "21.0.1",
"@rollup/plugin-node-resolve": "13.1.3",
"@rollup/plugin-typescript": "8.3.0",
Expand Down
6 changes: 0 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import alias from '@rollup/plugin-alias';
import commonjs from '@rollup/plugin-commonjs';
import { nodeResolve } from '@rollup/plugin-node-resolve';
import typescript from '@rollup/plugin-typescript';
Expand Down Expand Up @@ -56,11 +55,6 @@ const getPlugins = () => {
typescript({
module: 'esnext',
}),
alias({
entries: {
handlebars: 'handlebars/lib/handlebars.runtime',
},
}),
];
if (process.env.NODE_ENV === 'development') {
return plugins;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/registerHandlebarHelpers.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Handlebars from 'handlebars';
import Handlebars from 'handlebars/runtime';

import { HttpClient } from '../HttpClient';
import { registerHandlebarHelpers } from './registerHandlebarHelpers';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/registerHandlebarHelpers.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Handlebars from 'handlebars';
import Handlebars from 'handlebars/runtime';

import { Enum } from '../client/interfaces/Enum';
import { Model } from '../client/interfaces/Model';
Expand Down
2 changes: 1 addition & 1 deletion src/utils/registerHandlebarTemplates.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Handlebars from 'handlebars';
import Handlebars from 'handlebars/runtime';

import { HttpClient } from '../HttpClient';
import templateCoreApiError from '../templates/core/ApiError.hbs';
Expand Down
559 changes: 119 additions & 440 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit fe294e9

Please sign in to comment.