@awsless/awsless 0.0.2 → 0.0.4
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/bin.cjs +1 -0
- package/dist/bin.js +4 -3
- package/package.json +2 -2
package/dist/bin.cjs
CHANGED
|
@@ -1317,6 +1317,7 @@ var importFile = async (path) => {
|
|
|
1317
1317
|
};
|
|
1318
1318
|
const code = await load(path);
|
|
1319
1319
|
const outputFile = (0, import_path7.join)(outDir, "config.js");
|
|
1320
|
+
await (0, import_promises4.mkdir)(outDir, { recursive: true });
|
|
1320
1321
|
await (0, import_promises4.writeFile)(outputFile, code);
|
|
1321
1322
|
return import(outputFile);
|
|
1322
1323
|
};
|
package/dist/bin.js
CHANGED
|
@@ -1249,7 +1249,7 @@ var AppSchema = z23.object({
|
|
|
1249
1249
|
// src/util/import.ts
|
|
1250
1250
|
import { transformFile } from "@swc/core";
|
|
1251
1251
|
import { dirname, join as join4 } from "path";
|
|
1252
|
-
import { lstat, writeFile as writeFile2 } from "fs/promises";
|
|
1252
|
+
import { lstat, mkdir as mkdir2, writeFile as writeFile2 } from "fs/promises";
|
|
1253
1253
|
var resolveFileNameExtension = async (path) => {
|
|
1254
1254
|
const options = [
|
|
1255
1255
|
"",
|
|
@@ -1295,6 +1295,7 @@ var importFile = async (path) => {
|
|
|
1295
1295
|
};
|
|
1296
1296
|
const code = await load(path);
|
|
1297
1297
|
const outputFile = join4(outDir, "config.js");
|
|
1298
|
+
await mkdir2(outDir, { recursive: true });
|
|
1298
1299
|
await writeFile2(outputFile, code);
|
|
1299
1300
|
return import(outputFile);
|
|
1300
1301
|
};
|
|
@@ -1756,7 +1757,7 @@ var assetBuilder = (assets) => {
|
|
|
1756
1757
|
};
|
|
1757
1758
|
|
|
1758
1759
|
// src/util/cleanup.ts
|
|
1759
|
-
import { mkdir as
|
|
1760
|
+
import { mkdir as mkdir3, rm } from "fs/promises";
|
|
1760
1761
|
var cleanUp = async () => {
|
|
1761
1762
|
debug("Clean up assembly & asset files");
|
|
1762
1763
|
const paths = [
|
|
@@ -1768,7 +1769,7 @@ var cleanUp = async () => {
|
|
|
1768
1769
|
force: true,
|
|
1769
1770
|
maxRetries: 2
|
|
1770
1771
|
})));
|
|
1771
|
-
await Promise.all(paths.map((path) =>
|
|
1772
|
+
await Promise.all(paths.map((path) => mkdir3(path, {
|
|
1772
1773
|
recursive: true
|
|
1773
1774
|
})));
|
|
1774
1775
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
|
-
"bin": "./dist/bin.
|
|
16
|
+
"bin": "./dist/bin.js",
|
|
17
17
|
"main": "./dist/index.cjs",
|
|
18
18
|
"module": "./dist/index.js",
|
|
19
19
|
"types": "./dist/index.d.ts",
|