@merkur/create-widget 0.35.1 → 0.35.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkur/create-widget",
3
- "version": "0.35.1",
3
+ "version": "0.35.4",
4
4
  "description": "CLI for creating merkur widget easily.",
5
5
  "bin": {
6
6
  "merkur-create-widget": "./bin/createWidget.mjs"
@@ -44,5 +44,5 @@
44
44
  "inquirer": "9.2.2",
45
45
  "yargs": "^17.7.2"
46
46
  },
47
- "gitHead": "bc934c6a61b706062dd1fc11c9805457900e8d72"
47
+ "gitHead": "a78cf3d373ad20dbb2700e4070a52965cebd5a17"
48
48
  }
@@ -1,7 +1,7 @@
1
1
  const config = require('@merkur/tools/jest.config.js');
2
2
 
3
3
  config.transform = {
4
- '^.+\\.[t|j]sx?$': 'esbuild-jest2',
4
+ '^.+\\.[t|j]sx?$': 'esbuild-jest',
5
5
  };
6
6
 
7
7
  module.exports = {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type import('@merkur/cli').defineConfig
3
+ */
1
4
  export default function () {
2
5
  return {};
3
6
  }
@@ -16,9 +16,9 @@
16
16
  "author": "",
17
17
  "license": "ISC",
18
18
  "dependencies": {
19
- "@merkur/cli": "0.35.1",
19
+ "@merkur/cli": "0.35.4",
20
20
  "@merkur/core": "0.35.0",
21
- "@merkur/integration": "0.35.0",
21
+ "@merkur/integration": "0.35.3",
22
22
  "@merkur/plugin-component": "0.35.0",
23
23
  "@merkur/plugin-error": "0.35.0",
24
24
  "@merkur/plugin-event-emitter": "0.35.0",
@@ -32,8 +32,8 @@
32
32
  "morgan": "^1.10.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@merkur/tools": "0.35.0",
36
- "esbuild-jest2": "^0.6.5"
35
+ "@merkur/tools": "0.35.3",
36
+ "esbuild-jest": "^0.5.0"
37
37
  },
38
38
  "engines": {
39
39
  "node": ">=20.0.0"
@@ -10,7 +10,7 @@ const {
10
10
  } = require('@merkur/integration/server');
11
11
  const memoCreateAssets = memo(createAssets);
12
12
 
13
- const { merkurConfig } = resolveConfig();
13
+ const { merkurConfig, cliConfig } = resolveConfig();
14
14
  const { staticFolder, buildFolder, protocol, host, staticPath } =
15
15
  merkurConfig.widgetServer;
16
16
 
@@ -35,7 +35,8 @@ router.get(
35
35
  assets: info.assets,
36
36
  staticFolder,
37
37
  staticBaseUrl: `${protocol}//${host}${staticPath}`,
38
- folders: Object.keys(merkurConfig.task),
38
+ merkurConfig,
39
+ cliConfig,
39
40
  });
40
41
 
41
42
  const status = info?.error?.status ?? 200;
@@ -3,7 +3,7 @@ const config = require('@merkur/tools/jest.config.js');
3
3
  config.setupFilesAfterEnv = ['./jest.setup.js'];
4
4
  config.snapshotSerializers = ['enzyme-to-json/serializer'];
5
5
  config.transform = {
6
- '^.+\\.[t|j]sx?$': 'esbuild-jest2',
6
+ '^.+\\.[t|j]sx?$': 'esbuild-jest',
7
7
  };
8
8
 
9
9
  module.exports = {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type import('@merkur/cli').defineConfig
3
+ */
1
4
  export default function () {
2
5
  return {
3
6
  extends: ['@merkur/preact/cli'],
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type import('@merkur/cli').defineConfig
3
+ */
1
4
  export default function () {
2
5
  return {
3
6
  extends: ['@merkur/svelte/cli'],
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @type import('@merkur/cli').defineConfig
3
+ */
1
4
  export default function () {
2
5
  return {
3
6
  extends: ['@merkur/uhtml/cli'],