Skip to content

Commit bd75acf

Browse files
committed
Require Node.js 14 and move to ESM
1 parent 5b909f8 commit bd75acf

15 files changed

+270
-183
lines changed

.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
* text=auto eol=lf
2-
*.ai binary

cleanup.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
#!/usr/bin/env node
2-
'use strict';
3-
const execa = require('execa');
2+
import process from 'node:process';
3+
import {fileURLToPath} from 'node:url';
4+
import path from 'node:path';
5+
import execa from 'execa';
6+
7+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
48

59
(async () => {
610
try {
711
await execa('alfred-unlink', {
812
preferLocal: true,
9-
localDir: __dirname
13+
localDir: __dirname,
1014
});
1115
} catch (error) {
1216
console.error(error);

0 commit comments

Comments
 (0)