@dbx-tools/projen 0.6.75 → 0.6.77

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/src/release.ts CHANGED
@@ -88,9 +88,9 @@ function publishSetupSteps(): JobStep[] {
88
88
  *
89
89
  * Declaring one also enlists it in the root's `bump`, which cuts BOTH tags at one
90
90
  * shared version. The separate tag namespace still lets it be released alone
91
- * (`cd <directory> && bun run bump`) for a consumer who wants only this package -
92
- * but a routine root bump no longer leaves it behind, which is how the engine
93
- * drifted to 0.1.24 while the packages reached 0.3.41.
91
+ * (`cd <directory> && bun run bump`) for a consumer who wants only this package.
92
+ * Enlisting it is what keeps a routine root bump from leaving it behind and letting
93
+ * its version drift away from the packages'.
94
94
  */
95
95
  export interface StandaloneRelease {
96
96
  /** Workflow name (and `.github/workflows/<name>.yml` file). E.g. `projen-release`. */
package/src/tags.ts CHANGED
@@ -105,7 +105,7 @@ export const PACKAGE_TAG_MIXINS = {
105
105
  // generated `dev.ts`/`build.ts` use; no `vite/client`.
106
106
  types: ["bun"],
107
107
  // `@/` -> `src/` alias, resolved by both tsc and bun's bundler (bun reads
108
- // tsconfig `paths`). Replaces the old Vite `resolve.alias` for `@`.
108
+ // tsconfig `paths`).
109
109
  baseUrl: ".",
110
110
  paths: { "@/*": ["./src/*"] },
111
111
  });
package/src/tsconfig.ts CHANGED
@@ -5,9 +5,9 @@ import { Component, JsonFile, type Project, javascript } from "projen";
5
5
 
6
6
  /**
7
7
  * Compiler options for the ROOT program only (`.projenrc.ts` + the engine as
8
- * seen from the root). Each package now owns its own projen-generated
8
+ * seen from the root). Each package owns its own projen-generated
9
9
  * `tsconfig.json` (scope `lib`/`jsx`/`types` overlaid on projen's defaults), so
10
- * this base no longer feeds packages - it just gives the projenrc/editor program
10
+ * this base does not feed packages - it just gives the projenrc/editor program
11
11
  * a sane ESM config. `lib` is set narrowly in the root `tsconfig.json`.
12
12
  */
13
13
  const BASE_COMPILER_OPTIONS: javascript.TypeScriptCompilerOptions = {
package/src/vscode.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * is delivered by `.vscode/tasks.json` (`runOn: folderOpen`) - projen has no native
6
6
  * tasks.json component, so a `JsonFile` is the idiomatic emitter.
7
7
  */
8
- import { Component, JsonFile, type Project, vscode } from "projen";
8
+ import { Component, JsonFile, javascript, vscode } from "projen";
9
9
 
10
10
  /**
11
11
  * Configures root `.vscode/settings.json`, `extensions.json`, and `tasks.json`.
@@ -15,10 +15,10 @@ export class DBXToolsVsCode extends Component {
15
15
  /** projen's built-in VsCode component (settings + extension recommendations). */
16
16
  readonly vsCode: vscode.VsCode;
17
17
 
18
- constructor(scope: Project) {
18
+ constructor(scope: javascript.NodeProject) {
19
19
  super(scope);
20
20
 
21
- this.vsCode = new vscode.VsCode(scope);
21
+ this.vsCode = scope.vscode ?? new vscode.VsCode(scope);
22
22
  this.vsCode.settings.addSettings({
23
23
  "typescript.tsdk": "node_modules/typescript/lib",
24
24
  "typescript.preferences.importModuleSpecifier": "non-relative",