remove-glob 0.4.9 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -3,8 +3,7 @@ import { readFileSync } from 'node:fs';
3
3
  import { dirname, resolve } from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
  import { parseArgs } from 'cli-nano';
6
- // @ts-expect-error
7
- import { removeSync } from './index.ts';
6
+ import { removeSync } from './index.js';
8
7
  function readPackage() {
9
8
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
9
  const pkgPath = resolve(__dirname, '../package.json');
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { RemoveOptions } from './interfaces.ts';
1
+ import type { RemoveOptions } from './interfaces.js';
2
2
  /**
3
3
  * Remove the files or directories, the item(s) can be provided via positional arguments or via a `--glob` pattern.
4
4
  * @param {RemoveOptions} options - CLI options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remove-glob",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "A tiny utility to remove items or directories recursively, also supports glob",
5
5
  "bin": {
6
6
  "remove": "dist/cli.js"
package/src/cli.ts CHANGED
@@ -5,8 +5,7 @@ import { dirname, resolve } from 'node:path';
5
5
  import { fileURLToPath } from 'node:url';
6
6
  import { parseArgs } from 'cli-nano';
7
7
 
8
- // @ts-expect-error
9
- import { removeSync } from './index.ts';
8
+ import { removeSync } from './index.js';
10
9
 
11
10
  function readPackage() {
12
11
  const __dirname = dirname(fileURLToPath(import.meta.url));
package/src/index.ts CHANGED
@@ -2,7 +2,7 @@ import { existsSync, rmSync, statSync, unlinkSync } from 'node:fs';
2
2
  import { resolve } from 'node:path';
3
3
  import { globSync } from 'tinyglobby';
4
4
 
5
- import type { RemoveOptions } from './interfaces.ts';
5
+ import type { RemoveOptions } from './interfaces.js';
6
6
 
7
7
  /** Helper to throw or callback with error */
8
8
  function throwOrCallback(err?: Error, cb?: (e?: Error) => void) {