@ttsc/strip 0.8.0-dev.20260505 → 0.8.0-dev.20260506

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/README.md CHANGED
@@ -28,10 +28,10 @@ Open your project's `tsconfig.json`, then add this entry under `compilerOptions.
28
28
  {
29
29
  "transform": "@ttsc/strip",
30
30
  "calls": ["console.log", "console.debug", "assert.*"],
31
- "statements": ["debugger"]
32
- }
33
- ]
34
- }
31
+ "statements": ["debugger"],
32
+ },
33
+ ],
34
+ },
35
35
  }
36
36
  ```
37
37
 
@@ -54,15 +54,15 @@ Call patterns match statement-level calls such as `console.log("debug")` or `ass
54
54
  // Keep lint first.
55
55
  { "transform": "@ttsc/lint", "config": { "no-var": "error" } },
56
56
 
57
- // First-party utilities use their documented source/emit hook order.
57
+ // First-party utilities use their documented transform order.
58
58
  { "transform": "@ttsc/banner", "banner": "License MIT" },
59
59
  { "transform": "@ttsc/paths" },
60
60
  {
61
61
  "transform": "@ttsc/strip",
62
62
  "calls": ["console.log", "console.debug", "assert.*"],
63
- "statements": ["debugger"]
64
- }
65
- ]
66
- }
63
+ "statements": ["debugger"],
64
+ },
65
+ ],
66
+ },
67
67
  }
68
68
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttsc/strip",
3
- "version": "0.8.0-dev.20260505",
3
+ "version": "0.8.0-dev.20260506",
4
4
  "description": "First-party ttsc plugin that removes configured calls and statements from emitted JavaScript.",
5
5
  "main": "src/index.cjs",
6
6
  "exports": {
package/src/index.cjs CHANGED
@@ -8,8 +8,5 @@ module.exports = function createTtscStrip() {
8
8
  name: "@ttsc/strip",
9
9
  source: path.resolve(__dirname, "..", "plugin"),
10
10
  stage: "transform",
11
- hooks: {
12
- source: true,
13
- },
14
11
  };
15
12
  };