forked from OpenWF/SpaceNinjaServer
Fix Lint
This commit is contained in:
parent
fdb7b54333
commit
e3d8c73592
@ -41,7 +41,7 @@ class PluginGenerator {
|
|||||||
|
|
||||||
// Create plugin files
|
// Create plugin files
|
||||||
this.createPluginManifest(pluginDir, name);
|
this.createPluginManifest(pluginDir, name);
|
||||||
|
|
||||||
if (language === "ts") {
|
if (language === "ts") {
|
||||||
this.createTypeScriptPlugin(pluginDir, name);
|
this.createTypeScriptPlugin(pluginDir, name);
|
||||||
} else {
|
} else {
|
||||||
@ -198,7 +198,7 @@ export default ${name};
|
|||||||
|
|
||||||
// Create package.json for ES module support
|
// Create package.json for ES module support
|
||||||
const packageJson = {
|
const packageJson = {
|
||||||
"type": "module"
|
type: "module"
|
||||||
};
|
};
|
||||||
const packagePath = path.join(pluginDir, "package.json");
|
const packagePath = path.join(pluginDir, "package.json");
|
||||||
fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2));
|
fs.writeFileSync(packagePath, JSON.stringify(packageJson, null, 2));
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* JavaScript Plugin Generator Wrapper
|
* JavaScript Plugin Generator Wrapper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const { PluginGenerator } = require('./create-plugin-core');
|
const { PluginGenerator } = require("./create-plugin-core");
|
||||||
|
|
||||||
// Get plugin name from command line arguments
|
// Get plugin name from command line arguments
|
||||||
const pluginName = process.argv[2];
|
const pluginName = process.argv[2];
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* TypeScript Plugin Generator Wrapper
|
* TypeScript Plugin Generator Wrapper
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const { PluginGenerator } = require('./create-plugin-core');
|
const { PluginGenerator } = require("./create-plugin-core");
|
||||||
|
|
||||||
// Get plugin name from command line arguments
|
// Get plugin name from command line arguments
|
||||||
const pluginName = process.argv[2];
|
const pluginName = process.argv[2];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user