@ttsc/banner 0.37.0 → 0.37.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.
|
@@ -7,9 +7,14 @@ import type { ITtscBannerPluginConfig } from "./structures";
|
|
|
7
7
|
* executable sidecar or linked native source.
|
|
8
8
|
*/
|
|
9
9
|
type TtscPluginDescriptor = {
|
|
10
|
-
/**
|
|
10
|
+
/**
|
|
11
|
+
* The bundled driver host records actual writes and their physical sources,
|
|
12
|
+
* and reads only ttsc's own variables and `NODE_PATH`, which the runtime
|
|
13
|
+
* build key already holds.
|
|
14
|
+
*/
|
|
11
15
|
capabilities: {
|
|
12
16
|
emitProvenance: true;
|
|
17
|
+
environmentInputs: true;
|
|
13
18
|
};
|
|
14
19
|
/** Universal config-discovery inputs consumed by the native transform. */
|
|
15
20
|
hostInputs?: string[];
|
package/lib/createTtscBanner.js
CHANGED
|
@@ -68,7 +68,13 @@ function createTtscBanner(context) {
|
|
|
68
68
|
}
|
|
69
69
|
const configInputs = bannerConfigInputs(context);
|
|
70
70
|
return {
|
|
71
|
-
|
|
71
|
+
// The host reads only ttsc's own variables (`TTSC_NODE_BINARY` and its
|
|
72
|
+
// kin) and `NODE_PATH`, which key a runtime build already, so a project
|
|
73
|
+
// using it keeps its runtime emit across unrelated environment changes
|
|
74
|
+
// (samchon/ttsc#1856). An executable banner config is evaluated under the
|
|
75
|
+
// whole environment; a variable it reads is outside every proof, as for
|
|
76
|
+
// every plugin configuration, and `ttsx --no-cache` is the opt-out.
|
|
77
|
+
capabilities: { emitProvenance: true, environmentInputs: true },
|
|
72
78
|
hostInputHashes: configInputs.hashes,
|
|
73
79
|
hostInputRealpaths: configInputs.realpaths,
|
|
74
80
|
hostInputs: configInputs.inputs,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createTtscBanner.js","sourceRoot":"","sources":["../src/createTtscBanner.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAiC;AACjC,sDA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AE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;aAC7B,MAAM,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,2EAA2E;AAC3E,SAAS,qBAAqB,CAAC,IAAY;IACzC,IAAI,CAAC;QACH,OAAO,CAAC,iBAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;IAC1C,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttsc/banner",
|
|
3
|
-
"version": "0.37.
|
|
3
|
+
"version": "0.37.2",
|
|
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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@types/node": "^25.3.0",
|
|
37
37
|
"rimraf": "^6.1.2",
|
|
38
38
|
"typescript": "^7.0.2",
|
|
39
|
-
"ttsc": "0.37.
|
|
39
|
+
"ttsc": "0.37.2"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
package/src/createTtscBanner.ts
CHANGED
|
@@ -12,8 +12,12 @@ import type { ITtscBannerPluginConfig } from "./structures";
|
|
|
12
12
|
* executable sidecar or linked native source.
|
|
13
13
|
*/
|
|
14
14
|
type TtscPluginDescriptor = {
|
|
15
|
-
/**
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The bundled driver host records actual writes and their physical sources,
|
|
17
|
+
* and reads only ttsc's own variables and `NODE_PATH`, which the runtime
|
|
18
|
+
* build key already holds.
|
|
19
|
+
*/
|
|
20
|
+
capabilities: { emitProvenance: true; environmentInputs: true };
|
|
17
21
|
|
|
18
22
|
/** Universal config-discovery inputs consumed by the native transform. */
|
|
19
23
|
hostInputs?: string[];
|
|
@@ -142,7 +146,13 @@ export default function createTtscBanner(
|
|
|
142
146
|
|
|
143
147
|
const configInputs = bannerConfigInputs(context);
|
|
144
148
|
return {
|
|
145
|
-
|
|
149
|
+
// The host reads only ttsc's own variables (`TTSC_NODE_BINARY` and its
|
|
150
|
+
// kin) and `NODE_PATH`, which key a runtime build already, so a project
|
|
151
|
+
// using it keeps its runtime emit across unrelated environment changes
|
|
152
|
+
// (samchon/ttsc#1856). An executable banner config is evaluated under the
|
|
153
|
+
// whole environment; a variable it reads is outside every proof, as for
|
|
154
|
+
// every plugin configuration, and `ttsx --no-cache` is the opt-out.
|
|
155
|
+
capabilities: { emitProvenance: true, environmentInputs: true },
|
|
146
156
|
hostInputHashes: configInputs.hashes,
|
|
147
157
|
hostInputRealpaths: configInputs.realpaths,
|
|
148
158
|
hostInputs: configInputs.inputs,
|