Skip to content

Commit 3271365

Browse files
committed
💚 upgrade dependencies to latest versions except those that break the build
1 parent b0b9dba commit 3271365

File tree

4 files changed

+1992
-1658
lines changed

4 files changed

+1992
-1658
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848
"not op_mini all"
4949
],
5050
"dependencies": {
51-
"@blakek/deep": "^2.1.1",
51+
"@blakek/deep": "^2.2.0",
5252
"glob": "^7.1.6",
53-
"meow": "^8.0.0",
53+
"meow": "^8",
5454
"mkdirp": "^1.0.4",
55-
"p-limit": "^3.1.0"
55+
"p-limit": "^3"
5656
},
5757
"devDependencies": {
5858
"@babel/core": "^7.12.9",
@@ -61,13 +61,13 @@
6161
"@babel/preset-env": "^7.12.7",
6262
"@babel/preset-typescript": "^7.12.7",
6363
"@rollup/plugin-babel": "^5.2.2",
64-
"@rollup/plugin-commonjs": "^17.0.0",
65-
"@rollup/plugin-node-resolve": "^11.0.0",
64+
"@rollup/plugin-commonjs": "^21.0.1",
65+
"@rollup/plugin-node-resolve": "^13.0.6",
6666
"@rollup/plugin-typescript": "^8.0.0",
6767
"@types/glob": "^7.1.3",
6868
"@types/mkdirp": "^1.0.1",
69-
"@typescript-eslint/eslint-plugin": "^4.9.0",
70-
"@typescript-eslint/parser": "^4.9.0",
69+
"@typescript-eslint/eslint-plugin": "^5.3.1",
70+
"@typescript-eslint/parser": "^5.3.1",
7171
"amper-scripts": "^1.0.0-1",
7272
"ava": "^3.13.0",
7373
"nodemon": "^2.0.6",
@@ -76,7 +76,7 @@
7676
"rimraf": "^3.0.2",
7777
"rollup": "^2.34.0",
7878
"rollup-plugin-terser": "^7.0.2",
79-
"ts-node": "^9.0.0",
79+
"ts-node": "^10.4.0",
8080
"typescript": "^4.1.2"
8181
},
8282
"peerDependencies": {},

src/cli.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import path from 'path';
55
import { renderToFolder } from '.';
66

77
async function main() {
8-
const cli = meow(`
8+
const cli = meow(
9+
`
910
Usage
1011
$ template-file <dataFile> <sourceGlob> <destination>
1112
@@ -20,7 +21,9 @@ async function main() {
2021
2122
Compile all .abc files in src/ to build/
2223
$ template-file stuff.json 'src/**/*.abc' build/
23-
`);
24+
`
25+
// { importMeta: import.meta }
26+
);
2427

2528
if (cli.input.length !== 3) {
2629
cli.showHelp(2);

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export function render(template: string, data: Data): string {
5454
(_match, sectionTag, sectionContents, replacementTag) => {
5555
// Tag is for a repeating section
5656
if (sectionTag !== undefined) {
57-
const replacements = get(sectionTag, data);
57+
const replacements = get(sectionTag, data) as Data[] | undefined;
5858

5959
return replacements
6060
.map((subData: Data) => {

0 commit comments

Comments
 (0)