Skip to content

Commit 5371e90

Browse files
authored
Update build tools and upgrade CI to node 14 (firebase#237)
1 parent 81fcf30 commit 5371e90

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
node-version:
16-
- 12.x
16+
- 14.x
1717
steps:
1818
- uses: actions/checkout@v1
1919
- uses: actions/setup-node@v1

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
},
1111
"license": "Apache-2.0",
1212
"devDependencies": {
13-
"@types/node": "^15.12.2",
14-
"eslint": "^7.16.0",
15-
"pnpm": "^6.7.4",
13+
"@types/node": "^16.7.10",
14+
"eslint": "^7.32.0",
15+
"pnpm": "^6.14.6",
1616
"rimraf": "^3.0.2",
17-
"ts-node": "^9.0.0",
18-
"typescript": "^3.8.3"
17+
"ts-node": "^10.2.1",
18+
"typescript": "^4.4.2"
1919
}
2020
}

scripts/separate-snippets.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,15 @@ function collectSnippets(filePath: string): SnippetsConfig {
171171
const suffixLine = lines.find((l) => !!l.match(RE_SNIPPETS_SUFFIX));
172172
if (suffixLine) {
173173
const m = suffixLine.match(RE_SNIPPETS_SUFFIX);
174-
config.suffix = m[1];
174+
175+
if (m && m[1]) {
176+
config.suffix = m[1];
177+
}
175178
}
176179

177180
// A temporary array holding the names of snippets we're currently within.
178181
// This allows for handling nested snippets.
179-
let inSnippetNames = [];
182+
let inSnippetNames: string[] = [];
180183

181184
for (const line of lines) {
182185
const startMatch = line.match(RE_START_SNIPPET);

0 commit comments

Comments
 (0)