@ttsc/banner 0.18.3 → 0.19.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.
- package/driver/banner.go +6 -10
- package/package.json +2 -2
package/driver/banner.go
CHANGED
|
@@ -227,18 +227,14 @@ func resolveBannerConfigPath(configPath, cwd, tsconfigPath string) string {
|
|
|
227
227
|
return filepath.Join(tsconfigBaseDir(cwd, tsconfigPath), configPath)
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
// tsconfigBaseDir returns the directory
|
|
231
|
-
// when tsconfigPath is empty. It is the base both for resolving an explicit
|
|
230
|
+
// tsconfigBaseDir returns the base directory both for resolving an explicit
|
|
232
231
|
// `configFile` path and for starting the upward banner-config-file search.
|
|
232
|
+
// The launcher's explicit project-root channel (driver.PluginConfigDirEnv)
|
|
233
|
+
// wins when set — the tsconfig may be a generated wrapper in a temp directory
|
|
234
|
+
// that no longer identifies the project — otherwise the directory containing
|
|
235
|
+
// the tsconfig is used, falling back to cwd when tsconfigPath is empty.
|
|
233
236
|
func tsconfigBaseDir(cwd, tsconfigPath string) string {
|
|
234
|
-
|
|
235
|
-
return cwd
|
|
236
|
-
}
|
|
237
|
-
resolvedTsconfig := tsconfigPath
|
|
238
|
-
if !filepath.IsAbs(resolvedTsconfig) {
|
|
239
|
-
resolvedTsconfig = filepath.Join(cwd, resolvedTsconfig)
|
|
240
|
-
}
|
|
241
|
-
return filepath.Dir(resolvedTsconfig)
|
|
237
|
+
return driver.PluginConfigBaseDir(cwd, tsconfigPath)
|
|
242
238
|
}
|
|
243
239
|
|
|
244
240
|
// loadBannerConfigFile loads and evaluates a banner config file, returning its
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttsc/banner",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.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.
|
|
38
|
+
"ttsc": "0.19.0"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|