symlink-dir 10.0.0 → 10.0.1

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +8 -8
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
- import betterPathResolve from 'better-path-resolve';
1
+ import { betterPathResolve } from 'better-path-resolve';
2
2
  import { promises as fs, symlinkSync, mkdirSync, readlinkSync, unlinkSync } from 'fs';
3
3
  import { types } from 'util';
4
4
  import pathLib from 'path';
5
- import renameOverwrite from 'rename-overwrite';
5
+ import { renameOverwrite, renameOverwriteSync } from 'rename-overwrite';
6
6
  const IS_WINDOWS = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);
7
7
  function resolveSrcOnWinJunction(src) {
8
8
  return `${src}\\`;
@@ -226,7 +226,7 @@ function forceSymlinkSync(target, path, opts) {
226
226
  else {
227
227
  const ignore = `.ignored_${pathLib.basename(path)}`;
228
228
  try {
229
- renameOverwrite.sync(path, pathLib.join(parentDir, ignore));
229
+ renameOverwriteSync(path, pathLib.join(parentDir, ignore));
230
230
  }
231
231
  catch (error) {
232
232
  if (types.isNativeError(error) && 'code' in error && error.code === 'ENOENT') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "symlink-dir",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "Cross-platform directory symlinking",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -38,15 +38,15 @@
38
38
  },
39
39
  "homepage": "https://github.com/pnpm/symlink-dir#readme",
40
40
  "devDependencies": {
41
- "@types/node": "^22.15.3",
42
- "rimraf": "^3.0.2",
43
- "tempy": "^1.0.1",
44
- "typescript": "^5.8.3",
45
- "write-json-file": "^4.3.0"
41
+ "@types/node": "^25.5.0",
42
+ "rimraf": "^6.1.3",
43
+ "tempy": "^3.2.0",
44
+ "typescript": "^5.9.3",
45
+ "write-json-file": "^7.0.0"
46
46
  },
47
47
  "dependencies": {
48
- "better-path-resolve": "^1.0.0",
49
- "rename-overwrite": "^6.0.2"
48
+ "better-path-resolve": "^2.0.0",
49
+ "rename-overwrite": "^7.0.0"
50
50
  },
51
51
  "mos": {
52
52
  "plugins": [