@ttsc/banner 0.19.3 → 0.20.0

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/driver/banner.go +2 -5
  2. package/package.json +2 -2
package/driver/banner.go CHANGED
@@ -13,6 +13,7 @@ import (
13
13
  "time"
14
14
 
15
15
  "github.com/samchon/ttsc/packages/ttsc/driver"
16
+ "github.com/samchon/ttsc/packages/ttsc/driver/windowsjunction"
16
17
  )
17
18
 
18
19
  // configLoaderTimeout caps subprocesses that evaluate user-supplied banner
@@ -665,11 +666,7 @@ func linkNearestNodeModules(tempDir, sourceDir string) error {
665
666
 
666
667
  // createWindowsJunction creates a directory junction on Windows.
667
668
  func createWindowsJunction(link, target string) error {
668
- cmd := exec.Command("cmd", "/c", "mklink", "/J", link, target)
669
- if out, err := cmd.CombinedOutput(); err != nil {
670
- return fmt.Errorf("mklink /J failed: %v: %s", err, strings.TrimSpace(string(out)))
671
- }
672
- return nil
669
+ return windowsjunction.Create(link, target)
673
670
  }
674
671
 
675
672
  // findNearestNodeModules walks up from start looking for a node_modules directory.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttsc/banner",
3
- "version": "0.19.3",
3
+ "version": "0.20.0",
4
4
  "description": "First-party ttsc plugin that adds package-documentation JSDoc banners during emit.",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -35,7 +35,7 @@
35
35
  "@types/node": "^25.3.0",
36
36
  "rimraf": "^6.1.2",
37
37
  "typescript": "^7.0.2",
38
- "ttsc": "0.19.3"
38
+ "ttsc": "0.20.0"
39
39
  },
40
40
  "repository": {
41
41
  "type": "git",