Skip to content

Commit

Permalink
more ESM syntax issues
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jan 13, 2023
1 parent 9ba1a2e commit 00b50ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions fixup.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

cat >dist/cjs/package.json <<!EOF
cat >dist/cjs/src/package.json <<!EOF
{
"type": "commonjs"
}
!EOF

cat >dist/mjs/package.json <<!EOF
cat >dist/mjs/src/package.json <<!EOF
{
"type": "module"
}
Expand Down
2 changes: 1 addition & 1 deletion src/rimraf-move-remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
renameSync,
rmdirSync,
unlinkSync,
} from './fs'
} from './fs.js'
const { rename, unlink, rmdir, chmod } = fsPromises

import { RimrafOptions } from '.'
Expand Down
5 changes: 0 additions & 5 deletions src/rimraf-posix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,3 @@ export const rimrafPosixSync = (path: string, opt: RimrafOptions) => {

return ignoreENOENTSync(() => rmdirSync(path))
}

module.exports = {
rimrafPosix,
rimrafPosixSync,
}

0 comments on commit 00b50ce

Please sign in to comment.