Skip to content

Commit 5c015bd

Browse files
authored
Merge pull request projectfluent#368 from projectfluent/updates
Update dependencies
2 parents 7d3bc42 + a66667d commit 5c015bd

File tree

12 files changed

+1338
-6096
lines changed

12 files changed

+1338
-6096
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"parserOptions": {
3-
"ecmaVersion": 2018,
3+
"ecmaVersion": 2022,
44
"sourceType": "module"
55
},
66
"env": {

.github/workflows/test.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: Run tests
22

33
on:
4-
# Triggers the workflow on push or pull request events but only for the master branch
54
push:
65
branches:
76
- master
87
pull_request:
98
branches:
109
- master
11-
# Allows you to run this workflow manually from the Actions tab
1210
workflow_dispatch:
1311

1412
jobs:
@@ -19,8 +17,9 @@ jobs:
1917
- uses: actions/checkout@v4
2018
- uses: actions/setup-node@v4
2119
with:
22-
node-version: '12'
23-
- name: Run ci
24-
run: |
25-
npm install
26-
npm run ci
20+
node-version: 20
21+
- run: npm ci
22+
- run: npm run lint
23+
- run: npm test
24+
- run: npm run test:ebnf
25+
- run: npm run test:validate

bin/ebnf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ if (file_path === "-") {
2626

2727
function exit_help(exit_code) {
2828
console.log(`
29-
Usage: node -r esm ebnf.js [OPTIONS] <FILE>
29+
Usage: node ebnf.js [OPTIONS] <FILE>
3030
3131
When FILE is "-", read text from stdin.
3232
3333
Examples:
3434
35-
node -r esm ebnf.js path/to/grammar.js
36-
cat path/to/grammar.js | node -r esm ebnf.js -
35+
node ebnf.js path/to/grammar.js
36+
cat path/to/grammar.js | node ebnf.js -
3737
3838
Options:
3939

bin/parse.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ if (file_path === "-") {
2626

2727
function exit_help(exit_code) {
2828
console.log(`
29-
Usage: node -r esm parse.js [OPTIONS] <FILE>
29+
Usage: node parse.js [OPTIONS] <FILE>
3030
3131
When FILE is "-", read text from stdin.
3232
3333
Examples:
3434
35-
node -r esm parse.js path/to/file.ftl
36-
cat path/to/file.ftl | node -r esm parse.js -
35+
node parse.js path/to/file.ftl
36+
cat path/to/file.ftl | node parse.js -
3737
3838
Options:
3939

0 commit comments

Comments
 (0)