Skip to content

Commit

Permalink
feat(node): upgrade to node v18
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieMason committed Jul 2, 2023
1 parent 7ece87f commit 40dfb41
Show file tree
Hide file tree
Showing 4 changed files with 480 additions and 951 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.13.0
18
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
"@typescript-eslint/eslint-plugin": "5.3.1",
"@typescript-eslint/parser": "5.3.1",
"eslint": "8.2.0",
"nexe": "3.3.7",
"organize-imports-cli": "0.8.0",
"pkg": "5.8.1",
"prettier": "2.4.1",
"rimraf": "3.0.2",
"typescript": "4.4.4"
"typescript": "5.1.6"
},
"engines": {
"node": ">=12.18.2"
Expand Down Expand Up @@ -82,7 +82,7 @@
},
"scripts": {
"build": "npm run build:ts && npm run build:bin",
"build:bin": "(cd dist && nexe --target 'mac-x64-12.18.2' --input ./imageoptim.js --output ./imageoptim)",
"build:bin": "(cd dist && pkg --targets 'node18-macos-x64' --output ./imageoptim ./imageoptim.js)",
"build:ts": "tsc --project .",
"format": "npm run format:imports && npm run format:prettier",
"format:imports": "organize-imports-cli ./src/**/*.ts",
Expand Down
12 changes: 7 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
"include": ["./package.json", "./src/**/*.ts"],
"compilerOptions": {
"declaration": false,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ES2019"],
"module": "commonjs",
"lib": ["es2023"],
"module": "Node16",
"moduleResolution": "node16",
"outDir": "./dist",
"skipLibCheck": true,
"strict": true,
"target": "ES2019"
},
"include": ["./package.json", "./src/**/*.ts"]
"target": "es2022"
}
}
Loading

0 comments on commit 40dfb41

Please sign in to comment.