Skip to content

Commit f69da7f

Browse files
committed
- Making sure we have a blank line at the end of the generated files
1 parent 8ef2c90 commit f69da7f

File tree

5 files changed

+24
-192
lines changed

5 files changed

+24
-192
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- v1-dependencies-
1313
- run:
1414
name: Install dependencies
15-
command: npm install
15+
command: npm install --force
1616
- save_cache:
1717
key: v1-dependencies-{{ checksum "package.json" }}
1818
paths:

package-lock.json

Lines changed: 17 additions & 188 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
@@ -105,7 +105,7 @@
105105
"glob": "8.0.3",
106106
"jest": "28.1.0",
107107
"jest-cli": "28.1.0",
108-
"node-fetch": "3.2.4",
108+
"node-fetch": "2.6.7",
109109
"prettier": "2.6.2",
110110
"puppeteer": "14.1.2",
111111
"qs": "6.10.3",

src/templates/core/axios/request.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{{>header}}
22

3-
import axios, { AxiosError, type AxiosRequestConfig, type AxiosResponse } from 'axios';
3+
import axios from 'axios';
4+
import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
45
import FormData from 'form-data';
56

67
import { ApiError } from './ApiError';

src/utils/formatIndentation.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,7 @@ export const formatIndentation = (s: string, indent: Indent): string => {
1414
return line; // Default output is tab formatted
1515
}
1616
});
17-
return lines.join(EOL);
17+
// Make sure we have a blank line at the end
18+
const content = lines.join(EOL);
19+
return `${content}${EOL}`;
1820
};

0 commit comments

Comments
 (0)