@faasjs/load 0.0.2-beta.392 → 0.0.2-beta.395
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 +8 -8
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -28,8 +28,8 @@ FaasJS's load module.
|
|
|
28
28
|
|
|
29
29
|
| Name | Type | Description |
|
|
30
30
|
| :------ | :------ | :------ |
|
|
31
|
-
| `root` | `string` | 根目录 |
|
|
32
|
-
| `filename` | `string` | 目标文件,用于读取目录层级 |
|
|
31
|
+
| `root` | `string` | {string} 根目录 |
|
|
32
|
+
| `filename` | `string` | {filename} 目标文件,用于读取目录层级 |
|
|
33
33
|
|
|
34
34
|
#### Returns
|
|
35
35
|
|
|
@@ -47,14 +47,14 @@ ___
|
|
|
47
47
|
|
|
48
48
|
| Name | Type | Description |
|
|
49
49
|
| :------ | :------ | :------ |
|
|
50
|
-
| `filename` | `string` | 完整源文件路径 |
|
|
51
|
-
| `options` | `Object` | 配置项 |
|
|
52
|
-
| `options.input?` | `Object` | 读取配置 |
|
|
53
|
-
| `options.modules?` | `Object` | 生成 modules 的配置 |
|
|
50
|
+
| `filename` | `string` | {string} 完整源文件路径 |
|
|
51
|
+
| `options` | `Object` | {object} 配置项 |
|
|
52
|
+
| `options.input?` | `Object` | {object} 读取配置 |
|
|
53
|
+
| `options.modules?` | `Object` | {object} 生成 modules 的配置 |
|
|
54
54
|
| `options.modules.additions?` | `string`[] | - |
|
|
55
55
|
| `options.modules.excludes?` | `string`[] | - |
|
|
56
|
-
| `options.output?` | `Object` | 写入配置 |
|
|
57
|
-
| `options.tmp?` | `boolean` | 是否为临时文件,true 则生成的文件会被删除,默认为 false |
|
|
56
|
+
| `options.output?` | `Object` | {object} 写入配置 |
|
|
57
|
+
| `options.tmp?` | `boolean` | {boolean} 是否为临时文件,true 则生成的文件会被删除,默认为 false |
|
|
58
58
|
|
|
59
59
|
#### Returns
|
|
60
60
|
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -74,7 +75,7 @@ function loadConfig(root, filename) {
|
|
|
74
75
|
// src/load_ts.ts
|
|
75
76
|
var import_deep_merge2 = require("@faasjs/deep_merge");
|
|
76
77
|
var import_fs2 = require("fs");
|
|
77
|
-
var import_rollup = require("rollup");
|
|
78
|
+
var import_rollup = require("rollup/dist/rollup.js");
|
|
78
79
|
var import_path2 = require("path");
|
|
79
80
|
var import_ts_transform = require("@faasjs/ts-transform");
|
|
80
81
|
var FaasPackages = [
|
package/dist/index.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
2
3
|
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
3
4
|
}) : x)(function(x) {
|
|
@@ -60,7 +61,7 @@ function loadConfig(root, filename) {
|
|
|
60
61
|
// src/load_ts.ts
|
|
61
62
|
import { deepMerge as deepMerge2 } from "@faasjs/deep_merge";
|
|
62
63
|
import { readFileSync as readFileSync2, unlinkSync } from "fs";
|
|
63
|
-
import { rollup } from "rollup";
|
|
64
|
+
import { rollup } from "rollup/dist/rollup.js";
|
|
64
65
|
import {
|
|
65
66
|
join as join2,
|
|
66
67
|
sep as sep2,
|
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.395",
|
|
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.395",
|
|
26
|
+
"@faasjs/func": "^0.0.2-beta.395",
|
|
27
|
+
"@faasjs/ts-transform": "^0.0.2-beta.395",
|
|
28
28
|
"js-yaml": "*",
|
|
29
29
|
"rollup": "*"
|
|
30
30
|
},
|