Skip to content

Commit b9f1e12

Browse files
committed
feat!: convert safe-execa to esm
1 parent 08c289c commit b9f1e12

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

pnpm-lock.yaml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

safe-execa/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-2023 Zoltan Kochan <z@kochan.io>
3+
Copyright (c) 2022-2025 Zoltan Kochan <z@kochan.io>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

safe-execa/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "safe-execa",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "Like execa but prevents binary planting attacks on Windows",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
7+
"type": "module",
78
"engines": {
8-
"node": ">=12"
9+
"node": ">=18"
910
},
1011
"files": [
1112
"lib"
@@ -26,5 +27,8 @@
2627
"@zkochan/which": "^2.0.3",
2728
"execa": "^5.1.1",
2829
"path-name": "^1.0.0"
30+
},
31+
"devDependencies": {
32+
"@types/node": "14.14.6"
2933
}
3034
}

safe-execa/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"allowSyntheticDefaultImports": true,
44
"declaration": true,
55
"esModuleInterop": true,
6-
"module": "commonjs",
7-
"moduleResolution": "node",
6+
"module": "nodenext",
7+
"moduleResolution": "nodenext",
88
"noImplicitAny": false,
99
"noImplicitReturns": true,
1010
"outDir": "lib",
@@ -13,7 +13,7 @@
1313
"sourceMap": true,
1414
"strict": true,
1515
"suppressImplicitAnyIndexErrors": true,
16-
"target": "es2019"
16+
"target": "es2022"
1717
},
1818
"include": [
1919
"src/**/*.ts"

0 commit comments

Comments
 (0)