Skip to content

Commit

Permalink
Update Runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Feb 7, 2025
1 parent 470ecf4 commit 0d7eb03
Show file tree
Hide file tree
Showing 10 changed files with 2,225 additions and 2,458 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"repository": "[email protected]:openaddresses/batch",
"author": "ingalls <[email protected]>",
"private": false,
"engines": {
"node": ">= 22"
},
"scripts": {
"test": "echo 'no tests'",
"lint": "eslint cloudformation/"
Expand Down
4 changes: 2 additions & 2 deletions task/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM node:18-alpine3.17 AS node
FROM 847904970422.dkr.ecr.us-east-1.amazonaws.com/batch-machine:9.2.0
FROM node:22-alpine3.21 AS node
FROM 847904970422.dkr.ecr.us-east-1.amazonaws.com/batch-machine:9.9.0

COPY --from=node /usr/lib /usr/lib
COPY --from=node /usr/local/share /usr/local/share
Expand Down
1 change: 0 additions & 1 deletion task/collect.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node

// Does not need to mark instance
// as protected as it runs on a managed queue
Expand Down
64 changes: 32 additions & 32 deletions task/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
import js from "@eslint/js";
import nodePlugin from "eslint-plugin-n";
import js from '@eslint/js';
import nodePlugin from 'eslint-plugin-n';

export default [
js.configs.recommended,
nodePlugin.configs["flat/recommended-module"],
nodePlugin.configs['flat/recommended-module'],
{
"rules": {
"no-console": 0,
"arrow-parens": [ "error", "always" ],
"no-var": "error",
"prefer-const": "error",
"array-bracket-spacing": [ "error", "never" ],
"comma-dangle": [ "error", "never" ],
"computed-property-spacing": [ "error", "never" ],
"eol-last": "error",
"eqeqeq": [ "error", "smart" ],
"indent": [ "error", 4, { "SwitchCase": 1 } ],
"no-confusing-arrow": [ "error", { "allowParens": false } ],
"no-extend-native": "error",
"no-mixed-spaces-and-tabs": "error",
"func-call-spacing": [ "error", "never" ],
"no-trailing-spaces": "error",
"no-unused-vars": "error",
"no-use-before-define": [ "error", "nofunc" ],
"object-curly-spacing": [ "error", "always" ],
"prefer-arrow-callback": "error",
"quotes": [ "error", "single", "avoid-escape" ],
"semi": [ "error", "always" ],
"space-infix-ops": "error",
"spaced-comment": [ "error", "always" ],
"keyword-spacing": [ "error", { "before": true, "after": true } ],
"template-curly-spacing": [ "error", "never" ],
"semi-spacing": "error",
"strict": "error",
'rules': {
'no-console': 0,
'arrow-parens': ['error', 'always'],
'no-var': 'error',
'prefer-const': 'error',
'array-bracket-spacing': ['error', 'never'],
'comma-dangle': ['error', 'never'],
'computed-property-spacing': ['error', 'never'],
'eol-last': 'error',
'eqeqeq': ['error', 'smart'],
'indent': ['error', 4, { 'SwitchCase': 1 }],
'no-confusing-arrow': ['error', { 'allowParens': false }],
'no-extend-native': 'error',
'no-mixed-spaces-and-tabs': 'error',
'func-call-spacing': ['error', 'never'],
'no-trailing-spaces': 'error',
'no-unused-vars': 'error',
'no-use-before-define': ['error', 'nofunc'],
'object-curly-spacing': ['error', 'always'],
'prefer-arrow-callback': 'error',
'quotes': ['error', 'single', 'avoid-escape'],
'semi': ['error', 'always'],
'space-infix-ops': 'error',
'spaced-comment': ['error', 'always'],
'keyword-spacing': ['error', { 'before': true, 'after': true }],
'template-curly-spacing': ['error', 'never'],
'semi-spacing': 'error',
'strict': 'error'
}
}
]
];
1 change: 0 additions & 1 deletion task/export.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node
import { interactive } from './lib/pre.js';

import Meta from './lib/meta.js';
Expand Down
1 change: 0 additions & 1 deletion task/fabric.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node

// Does not need to mark instance
// as protected as it runs on a managed queue
Expand Down
4,604 changes: 2,185 additions & 2,419 deletions task/package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions task/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"test": "tape test/**.test.js",
"lint": "eslint *.js lib/ test/"
},
"engines": {
"node": ">= 22"
},
"dependencies": {
"@aws-sdk/client-auto-scaling": "^3.363.0",
"@aws-sdk/client-batch": "^3.365.0",
Expand Down
1 change: 0 additions & 1 deletion task/sources.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node

import { interactive } from './lib/pre.js';

Expand Down
1 change: 0 additions & 1 deletion task/task.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/usr/bin/env node
import { interactive } from './lib/pre.js';

import Job from './lib/job.js';
Expand Down

0 comments on commit 0d7eb03

Please sign in to comment.