@ttsc/strip 0.5.0-dev.20260429 → 0.5.0-dev.20260429-2

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.
@@ -1,4 +1,4 @@
1
- module github.com/samchon/ttsc/packages/strip/go-plugin
1
+ module github.com/samchon/ttsc/packages/strip
2
2
 
3
3
  go 1.26
4
4
 
@@ -11,7 +11,7 @@ require (
11
11
  require (
12
12
  github.com/go-json-experiment/json v0.0.0-20260214004413-d219187c3433 // indirect
13
13
  github.com/klauspost/cpuid/v2 v2.2.10 // indirect
14
- github.com/microsoft/typescript-go v0.0.0-20260424234512-515d036f927a // indirect
14
+ github.com/microsoft/typescript-go v0.0.0-20260428010401-3499951dbc49 // indirect
15
15
  github.com/zeebo/xxh3 v1.1.0 // indirect
16
16
  golang.org/x/sync v0.20.0 // indirect
17
17
  golang.org/x/sys v0.42.0 // indirect
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@ttsc/strip",
3
- "version": "0.5.0-dev.20260429",
3
+ "version": "0.5.0-dev.20260429-2",
4
4
  "description": "First-party ttsc plugin that removes configured calls and statements from emitted JavaScript.",
5
- "main": "index.cjs",
5
+ "main": "src/index.cjs",
6
6
  "exports": {
7
- ".": "./index.cjs",
7
+ ".": "./src/index.cjs",
8
8
  "./package.json": "./package.json"
9
9
  },
10
10
  "keywords": [
@@ -16,13 +16,12 @@
16
16
  ],
17
17
  "files": [
18
18
  "README.md",
19
- "index.cjs",
20
- "go-plugin/go.mod",
21
- "go-plugin/main.go",
22
- "go-plugin/strip"
19
+ "src/index.cjs",
20
+ "go.mod",
21
+ "plugin"
23
22
  ],
24
23
  "peerDependencies": {
25
- "ttsc": "^0.4.4"
24
+ "ttsc": "^0.5.0-dev.20260429"
26
25
  },
27
26
  "repository": {
28
27
  "type": "git",
@@ -3,8 +3,6 @@ package main
3
3
  import (
4
4
  "fmt"
5
5
  "os"
6
-
7
- "github.com/samchon/ttsc/packages/strip/go-plugin/strip"
8
6
  )
9
7
 
10
8
  const version = "0.0.1"
@@ -25,7 +23,7 @@ func run(args []string) int {
25
23
  case "check":
26
24
  return 0
27
25
  case "output":
28
- return strip.RunOutput(args[1:])
26
+ return RunOutput(args[1:])
29
27
  default:
30
28
  fmt.Fprintf(os.Stderr, "@ttsc/strip: unknown command %q\n", args[0])
31
29
  return 2
@@ -1,4 +1,4 @@
1
- package strip
1
+ package main
2
2
 
3
3
  import (
4
4
  "encoding/json"
@@ -9,7 +9,8 @@ module.exports = function createTtscStrip() {
9
9
  native: {
10
10
  mode: "ttsc-strip",
11
11
  source: {
12
- dir: path.resolve(__dirname, "go-plugin"),
12
+ dir: path.resolve(__dirname, ".."),
13
+ entry: "./plugin",
13
14
  },
14
15
  contractVersion: 1,
15
16
  capabilities: ["output"],