Skip to content

Commit

Permalink
Require Node.js 14 and move to ESM
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Aug 5, 2021
1 parent 5b909f8 commit bd75acf
Show file tree
Hide file tree
Showing 15 changed files with 270 additions and 183 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
* text=auto eol=lf
*.ai binary
10 changes: 7 additions & 3 deletions cleanup.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
#!/usr/bin/env node
'use strict';
const execa = require('execa');
import process from 'node:process';
import {fileURLToPath} from 'node:url';
import path from 'node:path';
import execa from 'execa';

const __dirname = path.dirname(fileURLToPath(import.meta.url));

(async () => {
try {
await execa('alfred-unlink', {
preferLocal: true,
localDir: __dirname
localDir: __dirname,
});
} catch (error) {
console.error(error);
Expand Down
Loading

0 comments on commit bd75acf

Please sign in to comment.