@driveflux/fab 2.2.2 → 2.3.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/dist/build.js +5 -5
- package/dist/clean.js +1 -1
- package/dist/config.js +3 -3
- package/dist/create.js +2 -2
- package/dist/utils.js +3 -3
- package/package.json +9 -9
package/dist/build.js
CHANGED
|
@@ -185,7 +185,7 @@ import path from 'node:path';
|
|
|
185
185
|
import merge from 'lodash.merge';
|
|
186
186
|
import { clean } from './clean.js';
|
|
187
187
|
import { ensureDir, getDefaultOptions, runBin, runCommand } from './utils.js';
|
|
188
|
-
export var build =
|
|
188
|
+
export var build = function() {
|
|
189
189
|
var _ref = _async_to_generator(function(rawOptions) {
|
|
190
190
|
var options, promises;
|
|
191
191
|
return _ts_generator(this, function(_state) {
|
|
@@ -222,7 +222,7 @@ export var build = /*#__PURE__*/ function() {
|
|
|
222
222
|
return _ref.apply(this, arguments);
|
|
223
223
|
};
|
|
224
224
|
}();
|
|
225
|
-
export var copyVerbatim =
|
|
225
|
+
export var copyVerbatim = function() {
|
|
226
226
|
var _ref = _async_to_generator(function(rawOptions) {
|
|
227
227
|
var _options_copyVerbatim, options, destination, guessTarget;
|
|
228
228
|
return _ts_generator(this, function(_state) {
|
|
@@ -244,7 +244,7 @@ export var copyVerbatim = /*#__PURE__*/ function() {
|
|
|
244
244
|
};
|
|
245
245
|
return [
|
|
246
246
|
4,
|
|
247
|
-
Promise.all(options.copyVerbatim.map(
|
|
247
|
+
Promise.all(options.copyVerbatim.map(function() {
|
|
248
248
|
var _ref = _async_to_generator(function(fileOrFolderRaw) {
|
|
249
249
|
var source, target, tagetBasedir;
|
|
250
250
|
return _ts_generator(this, function(_state) {
|
|
@@ -292,7 +292,7 @@ export var copyVerbatim = /*#__PURE__*/ function() {
|
|
|
292
292
|
return _ref.apply(this, arguments);
|
|
293
293
|
};
|
|
294
294
|
}();
|
|
295
|
-
export var buildTypes =
|
|
295
|
+
export var buildTypes = function() {
|
|
296
296
|
var _ref = _async_to_generator(function(rawOptions) {
|
|
297
297
|
var options, tsProject;
|
|
298
298
|
return _ts_generator(this, function(_state) {
|
|
@@ -322,7 +322,7 @@ export var buildTypes = /*#__PURE__*/ function() {
|
|
|
322
322
|
return _ref.apply(this, arguments);
|
|
323
323
|
};
|
|
324
324
|
}();
|
|
325
|
-
export var buildEsm =
|
|
325
|
+
export var buildEsm = function() {
|
|
326
326
|
var _ref = _async_to_generator(function(rawOptions) {
|
|
327
327
|
var options, finalOptions, swcrc, e, isValid, compilerOptions;
|
|
328
328
|
return _ts_generator(this, function(_state) {
|
package/dist/clean.js
CHANGED
|
@@ -126,7 +126,7 @@ import path from 'node:path';
|
|
|
126
126
|
import { deleteAsync } from 'del';
|
|
127
127
|
import merge from 'lodash.merge';
|
|
128
128
|
import { getDefaultOptions } from './utils.js';
|
|
129
|
-
export var clean =
|
|
129
|
+
export var clean = function() {
|
|
130
130
|
var _ref = _async_to_generator(function(rawOptions) {
|
|
131
131
|
var _merge, destination, all, commandOptions;
|
|
132
132
|
return _ts_generator(this, function(_state) {
|
package/dist/config.js
CHANGED
|
@@ -136,7 +136,7 @@ var ConfigValidation = z.object({
|
|
|
136
136
|
* or an array of 2 paths [source, destination].
|
|
137
137
|
*/ copyVerbatim: z.array(z.string().or(z.array(z.string()).length(2)))
|
|
138
138
|
});
|
|
139
|
-
export var parseConfig =
|
|
139
|
+
export var parseConfig = function() {
|
|
140
140
|
var _ref = _async_to_generator(function(options) {
|
|
141
141
|
var cwd, config, parsed;
|
|
142
142
|
return _ts_generator(this, function(_state) {
|
|
@@ -194,7 +194,7 @@ export var parseConfig = /*#__PURE__*/ function() {
|
|
|
194
194
|
return _ref.apply(this, arguments);
|
|
195
195
|
};
|
|
196
196
|
}();
|
|
197
|
-
var findConfigFile =
|
|
197
|
+
var findConfigFile = function() {
|
|
198
198
|
var _ref = _async_to_generator(function() {
|
|
199
199
|
var cwd, files, configFile, _tmp;
|
|
200
200
|
var _arguments = arguments;
|
|
@@ -241,7 +241,7 @@ var findConfigFile = /*#__PURE__*/ function() {
|
|
|
241
241
|
return _ref.apply(this, arguments);
|
|
242
242
|
};
|
|
243
243
|
}();
|
|
244
|
-
var readConfigFile =
|
|
244
|
+
var readConfigFile = function() {
|
|
245
245
|
var _ref = _async_to_generator(function(configPath) {
|
|
246
246
|
var _;
|
|
247
247
|
return _ts_generator(this, function(_state) {
|
package/dist/create.js
CHANGED
|
@@ -152,7 +152,7 @@ import path from 'node:path';
|
|
|
152
152
|
import { deleteAsync } from 'del';
|
|
153
153
|
import { DEV_DEPS_TO_INSTALL } from './create-package-config.js';
|
|
154
154
|
import { ensureDir, getBaseDir, runCommand } from './utils.js';
|
|
155
|
-
export var create =
|
|
155
|
+
export var create = function() {
|
|
156
156
|
var _ref = _async_to_generator(function(param) {
|
|
157
157
|
var template, name, providedDestination, providedCwd, dangerouslyRewrite, cwd, destination, finalDestination, e, templatePath;
|
|
158
158
|
return _ts_generator(this, function(_state) {
|
|
@@ -265,7 +265,7 @@ export var create = /*#__PURE__*/ function() {
|
|
|
265
265
|
return _ref.apply(this, arguments);
|
|
266
266
|
};
|
|
267
267
|
}();
|
|
268
|
-
var replaceInFile =
|
|
268
|
+
var replaceInFile = function() {
|
|
269
269
|
var _ref = _async_to_generator(function(filePath, replacements) {
|
|
270
270
|
var content, newContent;
|
|
271
271
|
return _ts_generator(this, function(_state) {
|
package/dist/utils.js
CHANGED
|
@@ -153,7 +153,7 @@ function _ts_generator(thisArg, body) {
|
|
|
153
153
|
import { spawn } from 'node:child_process';
|
|
154
154
|
import fs from 'node:fs/promises';
|
|
155
155
|
import path from 'node:path';
|
|
156
|
-
export var ensureDir =
|
|
156
|
+
export var ensureDir = function() {
|
|
157
157
|
var _ref = _async_to_generator(function(dir) {
|
|
158
158
|
var stat, e;
|
|
159
159
|
return _ts_generator(this, function(_state) {
|
|
@@ -203,7 +203,7 @@ export var ensureDir = /*#__PURE__*/ function() {
|
|
|
203
203
|
return _ref.apply(this, arguments);
|
|
204
204
|
};
|
|
205
205
|
}();
|
|
206
|
-
export var runBin =
|
|
206
|
+
export var runBin = function() {
|
|
207
207
|
var _ref = _async_to_generator(function(bin, args, options) {
|
|
208
208
|
var basePath, binPath, c;
|
|
209
209
|
return _ts_generator(this, function(_state) {
|
|
@@ -234,7 +234,7 @@ export var runBin = /*#__PURE__*/ function() {
|
|
|
234
234
|
return _ref.apply(this, arguments);
|
|
235
235
|
};
|
|
236
236
|
}();
|
|
237
|
-
export var runCommand =
|
|
237
|
+
export var runCommand = function() {
|
|
238
238
|
var _ref = _async_to_generator(function(cmd, args, options) {
|
|
239
239
|
var c;
|
|
240
240
|
return _ts_generator(this, function(_state) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@driveflux/fab",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
"tsconfig.json"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@swc/cli": "0.4.
|
|
19
|
-
"@swc/core": "1.7.
|
|
18
|
+
"@swc/cli": "^0.4.0",
|
|
19
|
+
"@swc/core": "1.7.2",
|
|
20
20
|
"commander": "^12.1.0",
|
|
21
|
-
"del": "^
|
|
21
|
+
"del": "^7.1.0",
|
|
22
22
|
"lodash.merge": "^4.6.2",
|
|
23
23
|
"zod": "^3.23.8"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@driveflux/tsconfig": "1.
|
|
26
|
+
"@driveflux/tsconfig": "1.3.0",
|
|
27
27
|
"@types/lodash.merge": "^4.6.9",
|
|
28
|
-
"@types/node": "^
|
|
29
|
-
"del-cli": "^
|
|
30
|
-
"type-fest": "^4.
|
|
31
|
-
"typescript": "^5.
|
|
28
|
+
"@types/node": "^20.14.12",
|
|
29
|
+
"del-cli": "^5.1.0",
|
|
30
|
+
"type-fest": "^4.23.0",
|
|
31
|
+
"typescript": "^5.5.4"
|
|
32
32
|
},
|
|
33
33
|
"bin": {
|
|
34
34
|
"fab": "./bin/fab.js"
|