@faasjs/load 0.0.2-beta.333 → 0.0.2-beta.337
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/dist/index.js +18 -1
- package/dist/index.mjs +18 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -81,6 +81,23 @@ var import_fs2 = require("fs");
|
|
|
81
81
|
var import_rollup = require("rollup");
|
|
82
82
|
var import_path2 = require("path");
|
|
83
83
|
var import_ts_transform = require("@faasjs/ts-transform");
|
|
84
|
+
var FaasPackages = [
|
|
85
|
+
"@faasjs/aws",
|
|
86
|
+
"@faasjs/cloud_function",
|
|
87
|
+
"@faasjs/deep_merge",
|
|
88
|
+
"@faasjs/deployer",
|
|
89
|
+
"@faasjs/func",
|
|
90
|
+
"@faasjs/graphql-server",
|
|
91
|
+
"@faasjs/http",
|
|
92
|
+
"@faasjs/knex",
|
|
93
|
+
"@faasjs/load",
|
|
94
|
+
"@faasjs/logger",
|
|
95
|
+
"@faasjs/mongo",
|
|
96
|
+
"@faasjs/redis",
|
|
97
|
+
"@faasjs/request",
|
|
98
|
+
"@faasjs/tencentcloud",
|
|
99
|
+
"@faasjs/ts-transform"
|
|
100
|
+
];
|
|
84
101
|
function resolveModuleBasePath(moduleName) {
|
|
85
102
|
const moduleMainFilePath = require.resolve(moduleName);
|
|
86
103
|
const moduleNameParts = moduleName.split("/");
|
|
@@ -147,7 +164,7 @@ async function loadTs(filename, options = /* @__PURE__ */ Object.create(null)) {
|
|
|
147
164
|
const input = (0, import_deep_merge2.deepMerge)({
|
|
148
165
|
input: filename,
|
|
149
166
|
external,
|
|
150
|
-
plugins: [swc(external)],
|
|
167
|
+
plugins: [swc(external.concat(FaasPackages))],
|
|
151
168
|
onwarn: () => null
|
|
152
169
|
}, options.input || {});
|
|
153
170
|
const bundle2 = await (0, import_rollup.rollup)(input);
|
package/dist/index.mjs
CHANGED
|
@@ -67,6 +67,23 @@ import {
|
|
|
67
67
|
dirname as dirname2
|
|
68
68
|
} from "path";
|
|
69
69
|
import { bundle, NodeBuiltinModules } from "@faasjs/ts-transform";
|
|
70
|
+
var FaasPackages = [
|
|
71
|
+
"@faasjs/aws",
|
|
72
|
+
"@faasjs/cloud_function",
|
|
73
|
+
"@faasjs/deep_merge",
|
|
74
|
+
"@faasjs/deployer",
|
|
75
|
+
"@faasjs/func",
|
|
76
|
+
"@faasjs/graphql-server",
|
|
77
|
+
"@faasjs/http",
|
|
78
|
+
"@faasjs/knex",
|
|
79
|
+
"@faasjs/load",
|
|
80
|
+
"@faasjs/logger",
|
|
81
|
+
"@faasjs/mongo",
|
|
82
|
+
"@faasjs/redis",
|
|
83
|
+
"@faasjs/request",
|
|
84
|
+
"@faasjs/tencentcloud",
|
|
85
|
+
"@faasjs/ts-transform"
|
|
86
|
+
];
|
|
70
87
|
function resolveModuleBasePath(moduleName) {
|
|
71
88
|
const moduleMainFilePath = __require.resolve(moduleName);
|
|
72
89
|
const moduleNameParts = moduleName.split("/");
|
|
@@ -133,7 +150,7 @@ async function loadTs(filename, options = /* @__PURE__ */ Object.create(null)) {
|
|
|
133
150
|
const input = deepMerge2({
|
|
134
151
|
input: filename,
|
|
135
152
|
external,
|
|
136
|
-
plugins: [swc(external)],
|
|
153
|
+
plugins: [swc(external.concat(FaasPackages))],
|
|
137
154
|
onwarn: () => null
|
|
138
155
|
}, options.input || {});
|
|
139
156
|
const bundle2 = await rollup(input);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/load",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.337",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@faasjs/deep_merge": "^0.0.2-beta.
|
|
26
|
-
"@faasjs/func": "^0.0.2-beta.
|
|
27
|
-
"@faasjs/ts-transform": "^0.0.2-beta.
|
|
25
|
+
"@faasjs/deep_merge": "^0.0.2-beta.337",
|
|
26
|
+
"@faasjs/func": "^0.0.2-beta.337",
|
|
27
|
+
"@faasjs/ts-transform": "^0.0.2-beta.337",
|
|
28
28
|
"js-yaml": "*",
|
|
29
29
|
"rollup": "*"
|
|
30
30
|
},
|