@dbx-tools/projen 0.6.76 → 0.6.78
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/pnpm-workspace.ts +1 -0
- package/src/project-js.ts +1246 -0
- package/src/project-predicate.ts +17 -6
- package/src/project-py.ts +401 -0
- package/src/project.ts +57 -1290
- package/src/publish.ts +2 -2
- package/src/vscode.ts +3 -3
package/src/publish.ts
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
*/
|
|
30
30
|
import type { javascript } from "projen";
|
|
31
31
|
import { typescript } from "projen";
|
|
32
|
-
import {
|
|
32
|
+
import { isDBXToolsJavaScriptProject } from "./project-predicate.ts";
|
|
33
33
|
import { addPackageFiles, applyCompilerOptions, applyIncludes } from "./project.ts";
|
|
34
34
|
|
|
35
35
|
/** Directory `tsc` emits into, and the root of every published entry point. */
|
|
@@ -63,7 +63,7 @@ export const COMPILED_COMPILER_OPTIONS: javascript.TypeScriptCompilerOptions = {
|
|
|
63
63
|
*/
|
|
64
64
|
export function publishesCompiled(pkg: javascript.NodeProject): boolean {
|
|
65
65
|
if (!(pkg instanceof typescript.TypeScriptProject) || !pkg.parent) return false;
|
|
66
|
-
return
|
|
66
|
+
return isDBXToolsJavaScriptProject()(pkg) && !pkg.dbxToolsConfig.tags.includes("ui");
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
/** The `./lib/...` stem of a source path, or `undefined` if it is not TypeScript. */
|
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",
|