@awsless/awsless 0.0.125 → 0.0.126

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.js CHANGED
@@ -7669,6 +7669,7 @@ var status = (program2) => {
7669
7669
  await layout(async (config2, write) => {
7670
7670
  const { app, deploymentLine } = await toApp(config2, filters);
7671
7671
  await cleanUp();
7672
+ await write(typesGenerator(config2));
7672
7673
  await write(assetBuilder(app));
7673
7674
  await write(templateBuilder(app));
7674
7675
  const doneLoading = write(loadingDialog("Loading stack information..."));
@@ -8324,7 +8325,8 @@ var watchConfig = async (options, resolve, reject) => {
8324
8325
  setRoot(root2);
8325
8326
  debug("CWD:", style.info(root2));
8326
8327
  debug("Start watching...");
8327
- const watcher = watch(["app.json", "**/stack.json", "**/*.stack.json"], {
8328
+ const ext = "{json,jsonc,json5}";
8329
+ const watcher = watch([`app.${ext}`, `**/stack.${ext}`, `**/*.stack.${ext}`], {
8328
8330
  cwd: root2,
8329
8331
  ignored: ["**/node_modules/**", "**/dist/**"]
8330
8332
  });
@@ -8342,13 +8344,15 @@ var watchConfig = async (options, resolve, reject) => {
8342
8344
  // src/cli/command/dev.ts
8343
8345
  var dev = (program2) => {
8344
8346
  program2.command("dev").description("Start the development service").action(async () => {
8345
- await layout(async (_, write) => {
8347
+ await layout(async (config2, write) => {
8346
8348
  const options = program2.optsWithGlobals();
8347
- await watchConfig(
8349
+ await cleanUp();
8350
+ await write(typesGenerator(config2));
8351
+ const watcher = await watchConfig(
8348
8352
  options,
8349
- async (config2) => {
8353
+ async (config3) => {
8350
8354
  await cleanUp();
8351
- await write(typesGenerator(config2));
8355
+ await write(typesGenerator(config3));
8352
8356
  },
8353
8357
  (error) => {
8354
8358
  if (error instanceof FileError) {
@@ -8364,6 +8368,8 @@ var dev = (program2) => {
8364
8368
  }
8365
8369
  }
8366
8370
  );
8371
+ await new Promise(() => {
8372
+ });
8367
8373
  });
8368
8374
  });
8369
8375
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.125",
3
+ "version": "0.0.126",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@awsless/lambda": "^0.0.15",
32
- "@awsless/sns": "^0.0.7",
33
32
  "@awsless/redis": "^0.0.10",
33
+ "@awsless/sns": "^0.0.7",
34
34
  "@awsless/sqs": "^0.0.7",
35
- "@awsless/ssm": "^0.0.7",
36
35
  "@awsless/validate": "^0.0.10",
36
+ "@awsless/ssm": "^0.0.7",
37
37
  "@awsless/weak-cache": "^0.0.1"
38
38
  },
39
39
  "dependencies": {
@@ -85,8 +85,8 @@
85
85
  "wrap-ansi": "^8.1.0",
86
86
  "zod": "^3.21.4",
87
87
  "zod-to-json-schema": "^3.22.3",
88
- "@awsless/code": "^0.0.10",
89
- "@awsless/graphql": "^0.0.6"
88
+ "@awsless/graphql": "^0.0.6",
89
+ "@awsless/code": "^0.0.10"
90
90
  },
91
91
  "scripts": {
92
92
  "test": "pnpm code test",