@knotx/cli 0.0.5 → 0.0.7

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/index.cjs CHANGED
@@ -87,7 +87,7 @@ program.command("create-plugin").description("\u521B\u5EFA\u4E00\u4E2A\u65B0\u76
87
87
  type: "list",
88
88
  name: "environment",
89
89
  message: "\u8BF7\u9009\u62E9\u63D2\u4EF6\u8FD0\u884C\u73AF\u5883:",
90
- choices: ["jsx", "react"]
90
+ choices: ["react", "jsx"]
91
91
  }
92
92
  ]);
93
93
  const { pluginName, environment } = answers;
package/dist/index.mjs CHANGED
@@ -76,7 +76,7 @@ program.command("create-plugin").description("\u521B\u5EFA\u4E00\u4E2A\u65B0\u76
76
76
  type: "list",
77
77
  name: "environment",
78
78
  message: "\u8BF7\u9009\u62E9\u63D2\u4EF6\u8FD0\u884C\u73AF\u5883:",
79
- choices: ["jsx", "react"]
79
+ choices: ["react", "jsx"]
80
80
  }
81
81
  ]);
82
82
  const { pluginName, environment } = answers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotx/cli",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "CLI tool for Knotx",
5
5
  "author": "boenfu",
6
6
  "license": "MIT",
@@ -40,9 +40,9 @@
40
40
  "devDependencies": {
41
41
  "@types/fs-extra": "^11.0.4",
42
42
  "@types/inquirer": "^9.0.7",
43
- "@knotx/build-config": "0.0.4",
44
- "@knotx/eslint-config": "0.0.4",
45
- "@knotx/typescript-config": "0.0.4"
43
+ "@knotx/build-config": "0.0.6",
44
+ "@knotx/eslint-config": "0.0.6",
45
+ "@knotx/typescript-config": "0.0.6"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "unbuild --failOnWarn=false",
@@ -6,7 +6,6 @@
6
6
  <title>{{capitalizedPluginName}} Plugin Playground</title>
7
7
  <style>
8
8
  body {
9
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
10
9
  margin: 0;
11
10
  padding: 20px;
12
11
  background-color: #f7f7f7;
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "extends": "../tsconfig.json",
3
3
  "compilerOptions": {
4
- "jsx": "react",
5
- "types": ["vite/client"]
4
+ "jsx": "react-jsx",
5
+ "types": ["vite/client"],
6
+ "esModuleInterop": true
6
7
  },
7
8
  "include": ["."]
8
9
  }
@@ -11,6 +11,6 @@ export class {{capitalizedPluginName}} extends BasePlugin<'{{camelCaseName}}'> {
11
11
 
12
12
  @OnInit
13
13
  init() {
14
- console.log('{{capitalizedPluginName}} 插件已加载', this.nodes)
14
+ console.log('{{capitalizedPluginName}} 插件已加载')
15
15
  }
16
16
  }