@cedarjs/internal 6.0.0-canary.2770 → 6.0.0-canary.2772
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/package.json +23 -80
- package/dist/cjs/ast.d.ts +0 -27
- package/dist/cjs/ast.d.ts.map +0 -1
- package/dist/cjs/ast.js +0 -223
- package/dist/cjs/build/api-graphql-transforms.d.ts +0 -34
- package/dist/cjs/build/api-graphql-transforms.d.ts.map +0 -1
- package/dist/cjs/build/api-graphql-transforms.js +0 -150
- package/dist/cjs/build/api.d.ts +0 -9
- package/dist/cjs/build/api.d.ts.map +0 -1
- package/dist/cjs/build/api.js +0 -407
- package/dist/cjs/build/auto-import.d.ts +0 -10
- package/dist/cjs/build/auto-import.d.ts.map +0 -1
- package/dist/cjs/build/auto-import.js +0 -144
- package/dist/cjs/build/directory-named-import.d.ts +0 -2
- package/dist/cjs/build/directory-named-import.d.ts.map +0 -1
- package/dist/cjs/build/directory-named-import.js +0 -60
- package/dist/cjs/build/esbuild-plugin-api-graphql.d.ts +0 -6
- package/dist/cjs/build/esbuild-plugin-api-graphql.d.ts.map +0 -1
- package/dist/cjs/build/esbuild-plugin-api-graphql.js +0 -107
- package/dist/cjs/build/esbuild-plugin-cedar-otel-wrapping.d.ts +0 -13
- package/dist/cjs/build/esbuild-plugin-cedar-otel-wrapping.d.ts.map +0 -1
- package/dist/cjs/build/esbuild-plugin-cedar-otel-wrapping.js +0 -214
- package/dist/cjs/build/esbuild-plugin-handler-als-wrapping.d.ts +0 -4
- package/dist/cjs/build/esbuild-plugin-handler-als-wrapping.d.ts.map +0 -1
- package/dist/cjs/build/esbuild-plugin-handler-als-wrapping.js +0 -59
- package/dist/cjs/build/esm-extensions.d.ts +0 -33
- package/dist/cjs/build/esm-extensions.d.ts.map +0 -1
- package/dist/cjs/build/esm-extensions.js +0 -71
- package/dist/cjs/build/import-dir.d.ts +0 -22
- package/dist/cjs/build/import-dir.d.ts.map +0 -1
- package/dist/cjs/build/import-dir.js +0 -88
- package/dist/cjs/build/job-path-injector.d.ts +0 -15
- package/dist/cjs/build/job-path-injector.d.ts.map +0 -1
- package/dist/cjs/build/job-path-injector.js +0 -103
- package/dist/cjs/build/src-alias.d.ts +0 -14
- package/dist/cjs/build/src-alias.d.ts.map +0 -1
- package/dist/cjs/build/src-alias.js +0 -51
- package/dist/cjs/build/tsconfig-paths.d.ts +0 -2
- package/dist/cjs/build/tsconfig-paths.d.ts.map +0 -1
- package/dist/cjs/build/tsconfig-paths.js +0 -106
- package/dist/cjs/cliLogger.d.ts +0 -11
- package/dist/cjs/cliLogger.d.ts.map +0 -1
- package/dist/cjs/cliLogger.js +0 -36
- package/dist/cjs/dev.d.ts +0 -2
- package/dist/cjs/dev.d.ts.map +0 -1
- package/dist/cjs/dev.js +0 -41
- package/dist/cjs/files.d.ts +0 -56
- package/dist/cjs/files.d.ts.map +0 -1
- package/dist/cjs/files.js +0 -230
- package/dist/cjs/generate/clientPreset.d.ts +0 -17
- package/dist/cjs/generate/clientPreset.d.ts.map +0 -1
- package/dist/cjs/generate/clientPreset.js +0 -101
- package/dist/cjs/generate/generate.d.ts +0 -10
- package/dist/cjs/generate/generate.d.ts.map +0 -1
- package/dist/cjs/generate/generate.js +0 -97
- package/dist/cjs/generate/gqlormSchema.d.ts +0 -113
- package/dist/cjs/generate/gqlormSchema.d.ts.map +0 -1
- package/dist/cjs/generate/gqlormSchema.js +0 -1061
- package/dist/cjs/generate/graphqlCodeGen.d.ts +0 -16
- package/dist/cjs/generate/graphqlCodeGen.d.ts.map +0 -1
- package/dist/cjs/generate/graphqlCodeGen.js +0 -380
- package/dist/cjs/generate/graphqlSchema.d.ts +0 -8
- package/dist/cjs/generate/graphqlSchema.d.ts.map +0 -1
- package/dist/cjs/generate/graphqlSchema.js +0 -157
- package/dist/cjs/generate/plugins/rw-typescript-resolvers/index.d.ts +0 -7
- package/dist/cjs/generate/plugins/rw-typescript-resolvers/index.d.ts.map +0 -1
- package/dist/cjs/generate/plugins/rw-typescript-resolvers/index.js +0 -65
- package/dist/cjs/generate/plugins/rw-typescript-resolvers/visitor.d.ts +0 -10
- package/dist/cjs/generate/plugins/rw-typescript-resolvers/visitor.d.ts.map +0 -1
- package/dist/cjs/generate/plugins/rw-typescript-resolvers/visitor.js +0 -92
- package/dist/cjs/generate/possibleTypes.d.ts +0 -36
- package/dist/cjs/generate/possibleTypes.d.ts.map +0 -1
- package/dist/cjs/generate/possibleTypes.js +0 -106
- package/dist/cjs/generate/templates/all-currentUser.d.ts.template +0 -30
- package/dist/cjs/generate/templates/all-gqlorm.d.ts.template +0 -7
- package/dist/cjs/generate/templates/api-globImports.d.ts.template +0 -9
- package/dist/cjs/generate/templates/api-globalContext.d.ts.template +0 -7
- package/dist/cjs/generate/templates/api-scenarios.d.ts.template +0 -10
- package/dist/cjs/generate/templates/api-test-globals.d.ts.template +0 -5
- package/dist/cjs/generate/templates/mirror-cell-fragment.d.ts.template +0 -18
- package/dist/cjs/generate/templates/mirror-cell.d.ts.template +0 -13
- package/dist/cjs/generate/templates/mirror-directoryNamedModule.d.ts.template +0 -5
- package/dist/cjs/generate/templates/web-routerRoutes.d.ts.template +0 -20
- package/dist/cjs/generate/templates/web-routesPages.d.ts.template +0 -13
- package/dist/cjs/generate/templates/web-test-globals.d.ts.template +0 -7
- package/dist/cjs/generate/templates.d.ts +0 -6
- package/dist/cjs/generate/templates.d.ts.map +0 -1
- package/dist/cjs/generate/templates.js +0 -68
- package/dist/cjs/generate/trustedDocuments.d.ts +0 -3
- package/dist/cjs/generate/trustedDocuments.d.ts.map +0 -1
- package/dist/cjs/generate/trustedDocuments.js +0 -95
- package/dist/cjs/generate/typeDefinitions.d.ts +0 -31
- package/dist/cjs/generate/typeDefinitions.d.ts.map +0 -1
- package/dist/cjs/generate/typeDefinitions.js +0 -381
- package/dist/cjs/generate/types.d.ts +0 -6
- package/dist/cjs/generate/types.d.ts.map +0 -1
- package/dist/cjs/generate/types.js +0 -16
- package/dist/cjs/generate/watch.d.ts +0 -3
- package/dist/cjs/generate/watch.d.ts.map +0 -1
- package/dist/cjs/generate/watch.js +0 -132
- package/dist/cjs/gql.d.ts +0 -34
- package/dist/cjs/gql.d.ts.map +0 -1
- package/dist/cjs/gql.js +0 -134
- package/dist/cjs/index.d.ts +0 -11
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -49
- package/dist/cjs/jsx.d.ts +0 -16
- package/dist/cjs/jsx.d.ts.map +0 -1
- package/dist/cjs/jsx.js +0 -101
- package/dist/cjs/jsxAttributeValue.d.ts +0 -2
- package/dist/cjs/jsxAttributeValue.d.ts.map +0 -1
- package/dist/cjs/jsxAttributeValue.js +0 -129
- package/dist/cjs/package.json +0 -1
- package/dist/cjs/project.d.ts +0 -8
- package/dist/cjs/project.d.ts.map +0 -1
- package/dist/cjs/project.js +0 -82
- package/dist/cjs/routes.d.ts +0 -42
- package/dist/cjs/routes.d.ts.map +0 -1
- package/dist/cjs/routes.js +0 -111
- package/dist/cjs/ts2js.d.ts +0 -40
- package/dist/cjs/ts2js.d.ts.map +0 -1
- package/dist/cjs/ts2js.js +0 -159
- package/dist/cjs/validateSchema.d.ts +0 -14
- package/dist/cjs/validateSchema.d.ts.map +0 -1
- package/dist/cjs/validateSchema.js +0 -195
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/internal",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2772",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -10,144 +10,88 @@
|
|
|
10
10
|
"type": "module",
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"
|
|
13
|
+
"default": {
|
|
14
14
|
"types": "./dist/index.d.ts",
|
|
15
15
|
"default": "./dist/index.js"
|
|
16
|
-
},
|
|
17
|
-
"require": {
|
|
18
|
-
"types": "./dist/cjs/index.d.ts",
|
|
19
|
-
"default": "./dist/cjs/index.js"
|
|
20
16
|
}
|
|
21
17
|
},
|
|
22
18
|
"./package.json": "./package.json",
|
|
23
19
|
"./dist/dev": {
|
|
24
|
-
"
|
|
20
|
+
"default": {
|
|
25
21
|
"types": "./dist/dev.d.ts",
|
|
26
22
|
"default": "./dist/dev.js"
|
|
27
|
-
},
|
|
28
|
-
"require": {
|
|
29
|
-
"types": "./dist/cjs/dev.d.ts",
|
|
30
|
-
"default": "./dist/cjs/dev.js"
|
|
31
23
|
}
|
|
32
24
|
},
|
|
33
25
|
"./dist/files": {
|
|
34
|
-
"
|
|
26
|
+
"default": {
|
|
35
27
|
"types": "./dist/files.d.ts",
|
|
36
28
|
"default": "./dist/files.js"
|
|
37
|
-
},
|
|
38
|
-
"require": {
|
|
39
|
-
"types": "./dist/cjs/files.d.ts",
|
|
40
|
-
"default": "./dist/cjs/files.js"
|
|
41
29
|
}
|
|
42
30
|
},
|
|
43
31
|
"./dist/files.js": {
|
|
44
|
-
"
|
|
32
|
+
"default": {
|
|
45
33
|
"types": "./dist/files.d.ts",
|
|
46
34
|
"default": "./dist/files.js"
|
|
47
|
-
},
|
|
48
|
-
"require": {
|
|
49
|
-
"types": "./dist/cjs/files.d.ts",
|
|
50
|
-
"default": "./dist/cjs/files.js"
|
|
51
35
|
}
|
|
52
36
|
},
|
|
53
37
|
"./dist/gql": {
|
|
54
|
-
"
|
|
38
|
+
"default": {
|
|
55
39
|
"types": "./dist/gql.d.ts",
|
|
56
40
|
"default": "./dist/gql.js"
|
|
57
|
-
},
|
|
58
|
-
"require": {
|
|
59
|
-
"types": "./dist/cjs/gql.d.ts",
|
|
60
|
-
"default": "./dist/cjs/gql.js"
|
|
61
41
|
}
|
|
62
42
|
},
|
|
63
43
|
"./dist/project": {
|
|
64
|
-
"
|
|
44
|
+
"default": {
|
|
65
45
|
"types": "./dist/project.d.ts",
|
|
66
46
|
"default": "./dist/project.js"
|
|
67
|
-
},
|
|
68
|
-
"require": {
|
|
69
|
-
"types": "./dist/cjs/project.d.ts",
|
|
70
|
-
"default": "./dist/cjs/project.js"
|
|
71
47
|
}
|
|
72
48
|
},
|
|
73
49
|
"./dist/routes.js": {
|
|
74
|
-
"
|
|
50
|
+
"default": {
|
|
75
51
|
"types": "./dist/routes.d.ts",
|
|
76
52
|
"default": "./dist/routes.js"
|
|
77
|
-
},
|
|
78
|
-
"require": {
|
|
79
|
-
"types": "./dist/cjs/routes.d.ts",
|
|
80
|
-
"default": "./dist/cjs/routes.js"
|
|
81
53
|
}
|
|
82
54
|
},
|
|
83
55
|
"./dist/ts2js": {
|
|
84
|
-
"
|
|
56
|
+
"default": {
|
|
85
57
|
"types": "./dist/ts2js.d.ts",
|
|
86
58
|
"default": "./dist/ts2js.js"
|
|
87
|
-
},
|
|
88
|
-
"require": {
|
|
89
|
-
"types": "./dist/cjs/ts2js.d.ts",
|
|
90
|
-
"default": "./dist/cjs/ts2js.js"
|
|
91
59
|
}
|
|
92
60
|
},
|
|
93
61
|
"./dist/validateSchema": {
|
|
94
|
-
"
|
|
62
|
+
"default": {
|
|
95
63
|
"types": "./dist/validateSchema.d.ts",
|
|
96
64
|
"default": "./dist/validateSchema.js"
|
|
97
|
-
},
|
|
98
|
-
"require": {
|
|
99
|
-
"types": "./dist/cjs/validateSchema.d.ts",
|
|
100
|
-
"default": "./dist/cjs/validateSchema.js"
|
|
101
65
|
}
|
|
102
66
|
},
|
|
103
67
|
"./dist/build/api": {
|
|
104
|
-
"
|
|
68
|
+
"default": {
|
|
105
69
|
"types": "./dist/build/api.d.ts",
|
|
106
70
|
"default": "./dist/build/api.js"
|
|
107
|
-
},
|
|
108
|
-
"require": {
|
|
109
|
-
"types": "./dist/cjs/build/api.d.ts",
|
|
110
|
-
"default": "./dist/cjs/build/api.js"
|
|
111
71
|
}
|
|
112
72
|
},
|
|
113
73
|
"./dist/build/api.js": {
|
|
114
|
-
"
|
|
74
|
+
"default": {
|
|
115
75
|
"types": "./dist/build/api.d.ts",
|
|
116
76
|
"default": "./dist/build/api.js"
|
|
117
|
-
},
|
|
118
|
-
"require": {
|
|
119
|
-
"types": "./dist/cjs/build/api.d.ts",
|
|
120
|
-
"default": "./dist/cjs/build/api.js"
|
|
121
77
|
}
|
|
122
78
|
},
|
|
123
79
|
"./dist/build/api-graphql-transforms.js": {
|
|
124
|
-
"
|
|
80
|
+
"default": {
|
|
125
81
|
"types": "./dist/build/api-graphql-transforms.d.ts",
|
|
126
82
|
"default": "./dist/build/api-graphql-transforms.js"
|
|
127
|
-
},
|
|
128
|
-
"require": {
|
|
129
|
-
"types": "./dist/cjs/build/api-graphql-transforms.d.ts",
|
|
130
|
-
"default": "./dist/cjs/build/api-graphql-transforms.js"
|
|
131
83
|
}
|
|
132
84
|
},
|
|
133
85
|
"./dist/generate/generate": {
|
|
134
|
-
"
|
|
86
|
+
"default": {
|
|
135
87
|
"types": "./dist/generate/generate.d.ts",
|
|
136
88
|
"default": "./dist/generate/generate.js"
|
|
137
|
-
},
|
|
138
|
-
"require": {
|
|
139
|
-
"types": "./dist/cjs/generate/generate.d.ts",
|
|
140
|
-
"default": "./dist/cjs/generate/generate.js"
|
|
141
89
|
}
|
|
142
90
|
},
|
|
143
91
|
"./dist/generate/gqlormSchema": {
|
|
144
|
-
"
|
|
92
|
+
"default": {
|
|
145
93
|
"types": "./dist/generate/gqlormSchema.d.ts",
|
|
146
94
|
"default": "./dist/generate/gqlormSchema.js"
|
|
147
|
-
},
|
|
148
|
-
"require": {
|
|
149
|
-
"types": "./dist/cjs/generate/gqlormSchema.d.ts",
|
|
150
|
-
"default": "./dist/cjs/generate/gqlormSchema.js"
|
|
151
95
|
}
|
|
152
96
|
}
|
|
153
97
|
},
|
|
@@ -164,7 +108,6 @@
|
|
|
164
108
|
"build:clean-dist": "rimraf 'dist/**/*/__tests__' --glob",
|
|
165
109
|
"build:pack": "yarn pack -o cedarjs-internal.tgz",
|
|
166
110
|
"build:types": "tsc --build --verbose ./tsconfig.build.json",
|
|
167
|
-
"build:types-cjs": "tsc --build --verbose ./tsconfig.cjs.json",
|
|
168
111
|
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
|
|
169
112
|
"check:attw": "yarn cedar-fwtools-attw",
|
|
170
113
|
"check:package": "concurrently npm:check:attw yarn:publint",
|
|
@@ -179,13 +122,13 @@
|
|
|
179
122
|
"@babel/plugin-transform-react-jsx": "7.29.7",
|
|
180
123
|
"@babel/plugin-transform-typescript": "^7.26.8",
|
|
181
124
|
"@babel/traverse": "7.29.7",
|
|
182
|
-
"@cedarjs/babel-config": "6.0.0-canary.
|
|
183
|
-
"@cedarjs/cli-helpers": "6.0.0-canary.
|
|
184
|
-
"@cedarjs/graphql-server": "6.0.0-canary.
|
|
185
|
-
"@cedarjs/project-config": "6.0.0-canary.
|
|
186
|
-
"@cedarjs/router": "6.0.0-canary.
|
|
187
|
-
"@cedarjs/structure": "6.0.0-canary.
|
|
188
|
-
"@cedarjs/utils": "6.0.0-canary.
|
|
125
|
+
"@cedarjs/babel-config": "6.0.0-canary.2772",
|
|
126
|
+
"@cedarjs/cli-helpers": "6.0.0-canary.2772",
|
|
127
|
+
"@cedarjs/graphql-server": "6.0.0-canary.2772",
|
|
128
|
+
"@cedarjs/project-config": "6.0.0-canary.2772",
|
|
129
|
+
"@cedarjs/router": "6.0.0-canary.2772",
|
|
130
|
+
"@cedarjs/structure": "6.0.0-canary.2772",
|
|
131
|
+
"@cedarjs/utils": "6.0.0-canary.2772",
|
|
189
132
|
"@graphql-codegen/add": "6.0.1",
|
|
190
133
|
"@graphql-codegen/cli": "6.3.1",
|
|
191
134
|
"@graphql-codegen/client-preset": "5.3.0",
|
|
@@ -230,7 +173,7 @@
|
|
|
230
173
|
},
|
|
231
174
|
"devDependencies": {
|
|
232
175
|
"@arethetypeswrong/cli": "0.18.5",
|
|
233
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
176
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2772",
|
|
234
177
|
"concurrently": "9.2.4",
|
|
235
178
|
"graphql-tag": "2.12.6",
|
|
236
179
|
"publint": "0.3.22",
|
package/dist/cjs/ast.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { types } from '@babel/core';
|
|
2
|
-
export declare const fileToAst: (filePath: string) => types.Node;
|
|
3
|
-
interface NamedExports {
|
|
4
|
-
name: string;
|
|
5
|
-
type: 're-export' | 'variable' | 'function' | 'class';
|
|
6
|
-
location: {
|
|
7
|
-
line: number;
|
|
8
|
-
column: number;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* get all the named exports in a given piece of code.
|
|
13
|
-
*/
|
|
14
|
-
export declare const getNamedExports: (ast: types.Node) => NamedExports[];
|
|
15
|
-
/**
|
|
16
|
-
* get all the gql queries from the supplied code
|
|
17
|
-
*/
|
|
18
|
-
export declare const getGqlQueries: (ast: types.Node) => string[];
|
|
19
|
-
export declare const getCellGqlQuery: (ast: types.Node) => undefined;
|
|
20
|
-
export declare const getCellGqlFragment: (ast: types.Node) => undefined;
|
|
21
|
-
export declare const hasDefaultExport: (ast: types.Node) => boolean;
|
|
22
|
-
export declare const getDefaultExportLocation: (ast: types.Node) => {
|
|
23
|
-
line: number;
|
|
24
|
-
column: number;
|
|
25
|
-
} | null;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=ast.d.ts.map
|
package/dist/cjs/ast.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ast.d.ts","sourceRoot":"","sources":["../../src/ast.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAmBnC,eAAO,MAAM,SAAS,GAAI,UAAU,MAAM,KAAG,KAAK,CAAC,IAyBlD,CAAA;AAED,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,WAAW,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAA;IACrD,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF;AACD;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,KAAK,KAAK,CAAC,IAAI,KAAG,YAAY,EA4D7D,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,KAAK,CAAC,IAAI,aAY5C,CAAA;AAED,eAAO,MAAM,eAAe,GAAI,KAAK,KAAK,CAAC,IAAI,cA8B9C,CAAA;AAED,eAAO,MAAM,kBAAkB,GAAI,KAAK,KAAK,CAAC,IAAI,cA8BjD,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,KAAK,KAAK,CAAC,IAAI,KAAG,OASlD,CAAA;AAED,eAAO,MAAM,wBAAwB,GACnC,KAAK,KAAK,CAAC,IAAI,KACd;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IA0CrC,CAAA"}
|
package/dist/cjs/ast.js
DELETED
|
@@ -1,223 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var ast_exports = {};
|
|
30
|
-
__export(ast_exports, {
|
|
31
|
-
fileToAst: () => fileToAst,
|
|
32
|
-
getCellGqlFragment: () => getCellGqlFragment,
|
|
33
|
-
getCellGqlQuery: () => getCellGqlQuery,
|
|
34
|
-
getDefaultExportLocation: () => getDefaultExportLocation,
|
|
35
|
-
getGqlQueries: () => getGqlQueries,
|
|
36
|
-
getNamedExports: () => getNamedExports,
|
|
37
|
-
hasDefaultExport: () => hasDefaultExport
|
|
38
|
-
});
|
|
39
|
-
module.exports = __toCommonJS(ast_exports);
|
|
40
|
-
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
41
|
-
var import_path = __toESM(require("path"), 1);
|
|
42
|
-
var import_core = require("@babel/core");
|
|
43
|
-
var import_parser = require("@babel/parser");
|
|
44
|
-
var import_traverse = __toESM(require("@babel/traverse"), 1);
|
|
45
|
-
var import_ansis = __toESM(require("ansis"), 1);
|
|
46
|
-
var import_project_config = require("@cedarjs/project-config");
|
|
47
|
-
var import_files = require("./files.js");
|
|
48
|
-
const traverse = import_traverse.default.default || import_traverse.default;
|
|
49
|
-
const fileToAst = (filePath) => {
|
|
50
|
-
const code = import_node_fs.default.readFileSync(filePath, "utf-8");
|
|
51
|
-
const isJsxFile = import_path.default.extname(filePath).match(/[jt]sx$/) || (0, import_files.isFileInsideFolder)(filePath, (0, import_project_config.getPaths)().web.base);
|
|
52
|
-
const plugins = [
|
|
53
|
-
"typescript",
|
|
54
|
-
"nullishCoalescingOperator",
|
|
55
|
-
"objectRestSpread",
|
|
56
|
-
isJsxFile && "jsx"
|
|
57
|
-
].filter(Boolean);
|
|
58
|
-
try {
|
|
59
|
-
return (0, import_parser.parse)(code, {
|
|
60
|
-
sourceType: "module",
|
|
61
|
-
plugins
|
|
62
|
-
});
|
|
63
|
-
} catch (e) {
|
|
64
|
-
console.error(import_ansis.default.red(`Error parsing: ${filePath}`));
|
|
65
|
-
console.error(e);
|
|
66
|
-
throw new Error(e?.message);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
const getNamedExports = (ast) => {
|
|
70
|
-
const namedExports = [];
|
|
71
|
-
traverse(ast, {
|
|
72
|
-
ExportNamedDeclaration(path2) {
|
|
73
|
-
const specifiers = path2.node?.specifiers;
|
|
74
|
-
if (specifiers.length) {
|
|
75
|
-
for (const s of specifiers) {
|
|
76
|
-
const id = s.exported;
|
|
77
|
-
namedExports.push({
|
|
78
|
-
name: id.name,
|
|
79
|
-
type: "re-export",
|
|
80
|
-
location: {
|
|
81
|
-
line: id.loc?.start.line ?? 1,
|
|
82
|
-
column: id.loc?.start.column ?? 0
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
const declaration = path2.node.declaration;
|
|
89
|
-
if (!declaration) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
if (declaration.type === "VariableDeclaration") {
|
|
93
|
-
const id = declaration.declarations[0].id;
|
|
94
|
-
namedExports.push({
|
|
95
|
-
name: id.name,
|
|
96
|
-
type: "variable",
|
|
97
|
-
location: {
|
|
98
|
-
line: id.loc?.start.line ?? 1,
|
|
99
|
-
column: id.loc?.start.column ?? 0
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
} else if (declaration.type === "FunctionDeclaration") {
|
|
103
|
-
namedExports.push({
|
|
104
|
-
name: declaration?.id?.name,
|
|
105
|
-
type: "function",
|
|
106
|
-
location: {
|
|
107
|
-
line: declaration?.id?.loc?.start.line ?? 1,
|
|
108
|
-
column: declaration?.id?.loc?.start.column ?? 0
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
} else if (declaration.type === "ClassDeclaration") {
|
|
112
|
-
namedExports.push({
|
|
113
|
-
name: declaration?.id?.name,
|
|
114
|
-
type: "class",
|
|
115
|
-
location: {
|
|
116
|
-
line: declaration?.id?.loc?.start.line ?? 1,
|
|
117
|
-
column: declaration?.id?.loc?.start.column ?? 0
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
return namedExports;
|
|
124
|
-
};
|
|
125
|
-
const getGqlQueries = (ast) => {
|
|
126
|
-
const gqlQueries = [];
|
|
127
|
-
traverse(ast, {
|
|
128
|
-
TaggedTemplateExpression(path2) {
|
|
129
|
-
const gqlTag = path2.node.tag;
|
|
130
|
-
if (gqlTag.type === "Identifier" && gqlTag.name === "gql") {
|
|
131
|
-
gqlQueries.push(path2.node.quasi.quasis[0].value.raw);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
return gqlQueries;
|
|
136
|
-
};
|
|
137
|
-
const getCellGqlQuery = (ast) => {
|
|
138
|
-
let cellQuery = void 0;
|
|
139
|
-
traverse(ast, {
|
|
140
|
-
ExportNamedDeclaration({ node }) {
|
|
141
|
-
if (node.exportKind === "value" && import_core.types.isVariableDeclaration(node.declaration)) {
|
|
142
|
-
const exportedQueryNode = node.declaration.declarations.find(
|
|
143
|
-
(d) => {
|
|
144
|
-
return import_core.types.isIdentifier(d.id) && d.id.name === "QUERY" && import_core.types.isTaggedTemplateExpression(d.init);
|
|
145
|
-
}
|
|
146
|
-
);
|
|
147
|
-
if (exportedQueryNode) {
|
|
148
|
-
const templateExpression = exportedQueryNode.init;
|
|
149
|
-
cellQuery = templateExpression.quasi.quasis[0].value.raw;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
return cellQuery;
|
|
156
|
-
};
|
|
157
|
-
const getCellGqlFragment = (ast) => {
|
|
158
|
-
let cellFragment = void 0;
|
|
159
|
-
traverse(ast, {
|
|
160
|
-
ExportNamedDeclaration({ node }) {
|
|
161
|
-
if (node.exportKind === "value" && import_core.types.isVariableDeclaration(node.declaration)) {
|
|
162
|
-
const exportedFragmentNode = node.declaration.declarations.find(
|
|
163
|
-
(d) => {
|
|
164
|
-
return import_core.types.isIdentifier(d.id) && d.id.name === "FRAGMENT" && import_core.types.isTaggedTemplateExpression(d.init);
|
|
165
|
-
}
|
|
166
|
-
);
|
|
167
|
-
if (exportedFragmentNode) {
|
|
168
|
-
const templateExpression = exportedFragmentNode.init;
|
|
169
|
-
cellFragment = templateExpression.quasi.quasis[0].value.raw;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
return;
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
return cellFragment;
|
|
176
|
-
};
|
|
177
|
-
const hasDefaultExport = (ast) => {
|
|
178
|
-
let exported = false;
|
|
179
|
-
traverse(ast, {
|
|
180
|
-
ExportDefaultDeclaration() {
|
|
181
|
-
exported = true;
|
|
182
|
-
return;
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
return exported;
|
|
186
|
-
};
|
|
187
|
-
const getDefaultExportLocation = (ast) => {
|
|
188
|
-
let defaultExport;
|
|
189
|
-
traverse(ast, {
|
|
190
|
-
ExportDefaultDeclaration(path2) {
|
|
191
|
-
defaultExport = path2.node;
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
if (!defaultExport) {
|
|
195
|
-
return null;
|
|
196
|
-
}
|
|
197
|
-
if (import_core.types.isIdentifier(defaultExport.declaration) && import_core.types.isFile(ast)) {
|
|
198
|
-
const exportedName = defaultExport.declaration.name;
|
|
199
|
-
const declaration = ast.program.body.find((node) => {
|
|
200
|
-
return import_core.types.isVariableDeclaration(node) && node.declarations.find((d) => {
|
|
201
|
-
return import_core.types.isVariableDeclarator(d) && import_core.types.isIdentifier(d.id) && d.id.name === exportedName;
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
return {
|
|
205
|
-
line: declaration?.loc?.start.line ?? 1,
|
|
206
|
-
column: declaration?.loc?.start.column ?? 0
|
|
207
|
-
};
|
|
208
|
-
}
|
|
209
|
-
return {
|
|
210
|
-
line: defaultExport.loc?.start.line ?? 1,
|
|
211
|
-
column: defaultExport.loc?.start.column ?? 0
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
215
|
-
0 && (module.exports = {
|
|
216
|
-
fileToAst,
|
|
217
|
-
getCellGqlFragment,
|
|
218
|
-
getCellGqlQuery,
|
|
219
|
-
getDefaultExportLocation,
|
|
220
|
-
getGqlQueries,
|
|
221
|
-
getNamedExports,
|
|
222
|
-
hasDefaultExport
|
|
223
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Extracts the options argument from createGraphQLHandler calls and stores
|
|
3
|
-
* them in an exported variable. Returns the transformed code, or null if no
|
|
4
|
-
* transformation was needed.
|
|
5
|
-
*
|
|
6
|
-
* Transforms:
|
|
7
|
-
* export const handler = createGraphQLHandler({ options })
|
|
8
|
-
* into:
|
|
9
|
-
* export const __cedar_graphqlOptions = { options }
|
|
10
|
-
* export const handler = createGraphQLHandler(__cedar_graphqlOptions)
|
|
11
|
-
*/
|
|
12
|
-
export declare function applyGraphqlOptionsExtract(code: string): string | null;
|
|
13
|
-
/**
|
|
14
|
-
* Injects the auto-generated gqlorm backend into graphql.ts at build time.
|
|
15
|
-
*
|
|
16
|
-
* When `experimental.gqlorm.enabled = true` and `.cedar/gqlorm/backend.ts`
|
|
17
|
-
* exists, this function:
|
|
18
|
-
*
|
|
19
|
-
* 1. Adds imports at the top of graphql.ts:
|
|
20
|
-
* import * as __gqlorm_sdl__ from '../../../.cedar/gqlorm/backend'
|
|
21
|
-
* import { db as __gqlorm_db__ } from 'src/lib/db'
|
|
22
|
-
*
|
|
23
|
-
* 2. Inserts a statement immediately before the `createGraphQLHandler` call:
|
|
24
|
-
* Object.assign(sdls, {
|
|
25
|
-
* __gqlorm__: {
|
|
26
|
-
* schema: __gqlorm_sdl__.schema,
|
|
27
|
-
* resolvers: __gqlorm_sdl__.createGqlormResolvers(__gqlorm_db__),
|
|
28
|
-
* },
|
|
29
|
-
* })
|
|
30
|
-
*
|
|
31
|
-
* Returns the transformed code, or null if no transformation was needed.
|
|
32
|
-
*/
|
|
33
|
-
export declare function applyGqlormInject(code: string, id: string, dbExt?: '.ts' | '.js'): string | null;
|
|
34
|
-
//# sourceMappingURL=api-graphql-transforms.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-graphql-transforms.d.ts","sourceRoot":"","sources":["../../../src/build/api-graphql-transforms.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;GAUG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA6FtE;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,KAAK,GAAE,KAAK,GAAG,KAAa,GAC3B,MAAM,GAAG,IAAI,CAmFf"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var api_graphql_transforms_exports = {};
|
|
30
|
-
__export(api_graphql_transforms_exports, {
|
|
31
|
-
applyGqlormInject: () => applyGqlormInject,
|
|
32
|
-
applyGraphqlOptionsExtract: () => applyGraphqlOptionsExtract
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(api_graphql_transforms_exports);
|
|
35
|
-
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
36
|
-
var import_node_path = __toESM(require("node:path"), 1);
|
|
37
|
-
var import_oxc_parser = require("oxc-parser");
|
|
38
|
-
var import_project_config = require("@cedarjs/project-config");
|
|
39
|
-
function applyGraphqlOptionsExtract(code) {
|
|
40
|
-
if (code.includes("__cedar_graphqlOptions")) {
|
|
41
|
-
return null;
|
|
42
|
-
}
|
|
43
|
-
const { program } = (0, import_oxc_parser.parseSync)("graphql.ts", code, {
|
|
44
|
-
// lang is only a parse hint; 'ts' also parses JS (the graphql handler can
|
|
45
|
-
// be graphql.js in JS projects), so this is safe for both file types.
|
|
46
|
-
lang: "ts",
|
|
47
|
-
sourceType: "module"
|
|
48
|
-
});
|
|
49
|
-
const importNames = /* @__PURE__ */ new Set();
|
|
50
|
-
for (const node of program.body) {
|
|
51
|
-
if (node.type === "ImportDeclaration") {
|
|
52
|
-
if (node.source.value !== "@cedarjs/graphql-server") {
|
|
53
|
-
continue;
|
|
54
|
-
}
|
|
55
|
-
for (const specifier of node.specifiers) {
|
|
56
|
-
if (specifier.type === "ImportSpecifier" && specifier.imported.type === "Identifier" && specifier.imported.name === "createGraphQLHandler") {
|
|
57
|
-
importNames.add(specifier.local.name);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
if (importNames.size === 0) {
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
const callExpressionPaths = [];
|
|
66
|
-
new import_oxc_parser.Visitor({
|
|
67
|
-
CallExpression(node) {
|
|
68
|
-
if (node.callee.type === "Identifier" && importNames.has(node.callee.name)) {
|
|
69
|
-
callExpressionPaths.push(node);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}).visit(program);
|
|
73
|
-
if (callExpressionPaths.length > 1) {
|
|
74
|
-
return null;
|
|
75
|
-
}
|
|
76
|
-
const callExpression = callExpressionPaths[0];
|
|
77
|
-
if (!callExpression) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
const options = callExpression.arguments[0];
|
|
81
|
-
if (!options) {
|
|
82
|
-
return null;
|
|
83
|
-
}
|
|
84
|
-
if (options.type !== "Identifier" && options.type !== "ObjectExpression" && options.type !== "CallExpression" && options.type !== "ConditionalExpression") {
|
|
85
|
-
return null;
|
|
86
|
-
}
|
|
87
|
-
const optionsStart = options.start;
|
|
88
|
-
const optionsEnd = options.end;
|
|
89
|
-
const lineStart = code.lastIndexOf("\n", callExpression.start) + 1;
|
|
90
|
-
const indentMatch = /^[ \t]*/.exec(code.slice(lineStart));
|
|
91
|
-
const indent = indentMatch ? indentMatch[0] : "";
|
|
92
|
-
const optionsConst = `${indent}export const __cedar_graphqlOptions = ${code.slice(
|
|
93
|
-
optionsStart,
|
|
94
|
-
optionsEnd
|
|
95
|
-
)}
|
|
96
|
-
`;
|
|
97
|
-
const before = code.slice(0, lineStart);
|
|
98
|
-
const between = code.slice(lineStart, optionsStart);
|
|
99
|
-
const after = code.slice(optionsEnd);
|
|
100
|
-
return before + optionsConst + between + "__cedar_graphqlOptions" + after;
|
|
101
|
-
}
|
|
102
|
-
function applyGqlormInject(code, id, dbExt = ".ts") {
|
|
103
|
-
if (code.includes("__gqlorm_sdl__")) {
|
|
104
|
-
return null;
|
|
105
|
-
}
|
|
106
|
-
if (!code.includes("createGraphQLHandler")) {
|
|
107
|
-
return null;
|
|
108
|
-
}
|
|
109
|
-
if (!(0, import_project_config.getConfig)().experimental?.gqlorm?.enabled) {
|
|
110
|
-
return null;
|
|
111
|
-
}
|
|
112
|
-
const backendPathWithoutExt = import_node_path.default.join(
|
|
113
|
-
(0, import_project_config.getPaths)().generated.base,
|
|
114
|
-
"gqlorm",
|
|
115
|
-
"backend"
|
|
116
|
-
);
|
|
117
|
-
if (!import_node_fs.default.existsSync(backendPathWithoutExt + ".ts")) {
|
|
118
|
-
return null;
|
|
119
|
-
}
|
|
120
|
-
const handlerPattern = /^export\s+const\s+(\w+)\s*=\s*createGraphQLHandler\s*\(/m;
|
|
121
|
-
const handlerMatch = handlerPattern.exec(code);
|
|
122
|
-
if (!handlerMatch) {
|
|
123
|
-
return null;
|
|
124
|
-
}
|
|
125
|
-
const handlerLineStart = code.lastIndexOf("\n", handlerMatch.index) + 1;
|
|
126
|
-
const relPath = (0, import_project_config.importStatementPath)(
|
|
127
|
-
import_node_path.default.relative(import_node_path.default.dirname(id), backendPathWithoutExt)
|
|
128
|
-
) + ".ts";
|
|
129
|
-
const dbSrcPath = import_node_path.default.join((0, import_project_config.getPaths)().api.src, "lib", "db");
|
|
130
|
-
const relDbPath = (0, import_project_config.importStatementPath)(import_node_path.default.relative(import_node_path.default.dirname(id), dbSrcPath)) + dbExt;
|
|
131
|
-
const importDb = `import { db as __gqlorm_db__ } from '${relDbPath}'`;
|
|
132
|
-
const importSdl = `import * as __gqlorm_sdl__ from '${relPath}'`;
|
|
133
|
-
const importsToAdd = `${importDb}
|
|
134
|
-
${importSdl}
|
|
135
|
-
`;
|
|
136
|
-
const sdlsMutation = `Object.assign(sdls, {
|
|
137
|
-
__gqlorm__: {
|
|
138
|
-
schema: __gqlorm_sdl__.schema,
|
|
139
|
-
resolvers: __gqlorm_sdl__.createGqlormResolvers(__gqlorm_db__),
|
|
140
|
-
},
|
|
141
|
-
})
|
|
142
|
-
`;
|
|
143
|
-
const transformed = importsToAdd + code.slice(0, handlerLineStart) + sdlsMutation + code.slice(handlerLineStart);
|
|
144
|
-
return transformed;
|
|
145
|
-
}
|
|
146
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
147
|
-
0 && (module.exports = {
|
|
148
|
-
applyGqlormInject,
|
|
149
|
-
applyGraphqlOptionsExtract
|
|
150
|
-
});
|
package/dist/cjs/build/api.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { BuildOptions } from 'esbuild';
|
|
2
|
-
export { applySrcAlias } from './src-alias.js';
|
|
3
|
-
export { applyEsmExtensions } from './esm-extensions.js';
|
|
4
|
-
export declare const buildApi: () => Promise<import("esbuild").BuildResult<BuildOptions>>;
|
|
5
|
-
export declare const rebuildApi: () => Promise<import("esbuild").BuildResult<BuildOptions>>;
|
|
6
|
-
export declare const cleanApiBuild: () => Promise<void>;
|
|
7
|
-
export declare const buildApiWithVite: () => Promise<import("rollup").RollupOutput | import("rollup").RollupOutput[] | import("rollup").RollupWatcher>;
|
|
8
|
-
export declare function fixSourceMaps(distDir: string, srcDir: string): Promise<void>;
|
|
9
|
-
//# sourceMappingURL=api.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/build/api.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAgB,YAAY,EAAe,MAAM,SAAS,CAAA;AA6CtE,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AAIxD,eAAO,MAAM,QAAQ,4DAIpB,CAAA;AAED,eAAO,MAAM,UAAU,4DAStB,CAAA;AAED,eAAO,MAAM,aAAa,qBAGzB,CAAA;AA0VD,eAAO,MAAM,gBAAgB,iHAiE5B,CAAA;AAcD,wBAAsB,aAAa,CACjC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CAoDf"}
|