@pbuilder/sdk 0.5.0 → 0.7.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/README.md +51 -3
- package/dist/core/jsx-name-validator.d.ts +6 -1
- package/dist/core/jsx-name-validator.js +12 -4
- package/dist/dialects/angular/index.d.ts +58 -0
- package/dist/dialects/angular/index.js +63 -0
- package/dist/dialects/angular/ops.d.ts +97 -0
- package/dist/dialects/angular/ops.js +302 -0
- package/dist/dialects/nestjs/index.d.ts +43 -0
- package/dist/dialects/nestjs/index.js +46 -0
- package/dist/dialects/nestjs/ops.d.ts +13 -0
- package/dist/dialects/nestjs/ops.js +75 -0
- package/dist/dialects/typescript/array-element.d.ts +41 -0
- package/dist/dialects/typescript/array-element.js +323 -0
- package/dist/dialects/typescript/class-property.d.ts +24 -0
- package/dist/dialects/typescript/class-property.js +98 -0
- package/dist/dialects/typescript/index.d.ts +20 -2
- package/dist/dialects/typescript/index.js +6 -10
- package/dist/dialects/typescript/ops.d.ts +65 -5
- package/dist/dialects/typescript/ops.js +272 -37
- package/dist/dialects/typescript/pack.d.ts +20 -0
- package/dist/dialects/typescript/pack.js +22 -0
- package/dist/runner-manifest.json +2 -2
- package/package.json +11 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { addImport, addDefaultImport, addNamespaceImport, addTypeImport, addSideEffectImport, addReExport, addExportAll, addFunction, addVariable, addClass, removeImport, removeExport, removeExportAll } from "./ops.ts";
|
|
2
|
+
import { addArrayElement } from "./array-element.ts";
|
|
3
|
+
import { addClassProperty } from "./class-property.ts";
|
|
4
|
+
export declare const typescriptOps: {
|
|
5
|
+
addImport: typeof addImport;
|
|
6
|
+
addDefaultImport: typeof addDefaultImport;
|
|
7
|
+
addNamespaceImport: typeof addNamespaceImport;
|
|
8
|
+
addTypeImport: typeof addTypeImport;
|
|
9
|
+
addSideEffectImport: typeof addSideEffectImport;
|
|
10
|
+
addReExport: typeof addReExport;
|
|
11
|
+
addExportAll: typeof addExportAll;
|
|
12
|
+
addFunction: typeof addFunction;
|
|
13
|
+
addVariable: typeof addVariable;
|
|
14
|
+
addClass: typeof addClass;
|
|
15
|
+
removeImport: typeof removeImport;
|
|
16
|
+
removeExport: typeof removeExport;
|
|
17
|
+
removeExportAll: typeof removeExportAll;
|
|
18
|
+
addArrayElement: typeof addArrayElement;
|
|
19
|
+
addClassProperty: typeof addClassProperty;
|
|
20
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// The runtime op pack lives apart from index.ts so a dialect that extends TypeScript
|
|
2
|
+
// (src/dialects/nestjs) composes the same ops without importing the `find` entry point.
|
|
3
|
+
import { addImport, addDefaultImport, addNamespaceImport, addTypeImport, addSideEffectImport, addReExport, addExportAll, addFunction, addVariable, addClass, removeImport, removeExport, removeExportAll, } from "./ops.js";
|
|
4
|
+
import { addArrayElement } from "./array-element.js";
|
|
5
|
+
import { addClassProperty } from "./class-property.js";
|
|
6
|
+
export const typescriptOps = {
|
|
7
|
+
addImport,
|
|
8
|
+
addDefaultImport,
|
|
9
|
+
addNamespaceImport,
|
|
10
|
+
addTypeImport,
|
|
11
|
+
addSideEffectImport,
|
|
12
|
+
addReExport,
|
|
13
|
+
addExportAll,
|
|
14
|
+
addFunction,
|
|
15
|
+
addVariable,
|
|
16
|
+
addClass,
|
|
17
|
+
removeImport,
|
|
18
|
+
removeExport,
|
|
19
|
+
removeExportAll,
|
|
20
|
+
addArrayElement,
|
|
21
|
+
addClassProperty,
|
|
22
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifestVersion": 1,
|
|
3
3
|
"algorithm": "sha256",
|
|
4
4
|
"entry": "dist/bin/pbuilder-runner.js",
|
|
5
|
-
"packageVersion": "0.
|
|
5
|
+
"packageVersion": "0.7.0",
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "dist/bin/pbuilder-runner.js",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"path": "package.json",
|
|
101
|
-
"sha256": "
|
|
101
|
+
"sha256": "a2906e287cb0269c41091afa18cf1f4db8ee583753762b5bc1a868922dff87f8"
|
|
102
102
|
}
|
|
103
103
|
]
|
|
104
104
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pbuilder/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "The public TypeScript/Bun authoring layer for Project Builder schematics. Authors file mutations (create, replaceContent, remove, rename, move, copy, copyIn), lowers them to IR, and talks to the Project Builder engine over framed stdio (see docs/engine-sdk-wire-spec.md).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -73,6 +73,16 @@
|
|
|
73
73
|
"import": "./dist/dialects/json/index.js",
|
|
74
74
|
"default": "./dist/dialects/json/index.js"
|
|
75
75
|
},
|
|
76
|
+
"./nestjs": {
|
|
77
|
+
"types": "./dist/dialects/nestjs/index.d.ts",
|
|
78
|
+
"import": "./dist/dialects/nestjs/index.js",
|
|
79
|
+
"default": "./dist/dialects/nestjs/index.js"
|
|
80
|
+
},
|
|
81
|
+
"./angular": {
|
|
82
|
+
"types": "./dist/dialects/angular/index.d.ts",
|
|
83
|
+
"import": "./dist/dialects/angular/index.js",
|
|
84
|
+
"default": "./dist/dialects/angular/index.js"
|
|
85
|
+
},
|
|
76
86
|
"./yaml": {
|
|
77
87
|
"types": "./dist/dialects/yaml/index.d.ts",
|
|
78
88
|
"import": "./dist/dialects/yaml/index.js",
|