@ttsc/strip 0.19.3 → 0.20.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/driver/config.go +2 -5
  2. package/package.json +1 -1
package/driver/config.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 every `ttsx`/`node -e` subprocess that evaluates a
@@ -541,11 +542,7 @@ func stripLinkNearestNodeModules(tempDir, sourceDir string) error {
541
542
 
542
543
  // stripCreateWindowsJunction creates a directory junction on Windows.
543
544
  func stripCreateWindowsJunction(link, target string) error {
544
- cmd := exec.Command("cmd", "/c", "mklink", "/J", link, target)
545
- if out, err := cmd.CombinedOutput(); err != nil {
546
- return fmt.Errorf("mklink /J failed: %v: %s", err, strings.TrimSpace(string(out)))
547
- }
548
- return nil
545
+ return windowsjunction.Create(link, target)
549
546
  }
550
547
 
551
548
  // stripRelativeImportSpecifier computes the ESM import specifier for location
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttsc/strip",
3
- "version": "0.19.3",
3
+ "version": "0.20.1",
4
4
  "description": "First-party ttsc plugin that removes configured calls and statements from emitted JavaScript.",
5
5
  "main": "src/index.cjs",
6
6
  "types": "src/index.d.ts",