@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/README.md +38 -0
- package/index.ts +8 -21
- package/package.json +4 -4
- package/src/bun-app.ts +4 -6
- package/src/openapi.ts +87 -20
- package/src/project-js.ts +1237 -0
- package/src/project-predicate.ts +1 -1
- package/src/project-py.ts +329 -0
- package/src/project.ts +46 -1292
- package/src/release.ts +3 -3
- package/src/tags.ts +1 -1
- package/src/tsconfig.ts +2 -2
- package/src/vscode.ts +3 -3
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
|
-
*
|
|
93
|
-
*
|
|
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`).
|
|
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
|
|
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
|
|
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,
|
|
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:
|
|
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",
|