@atom8n/node-cli 0.17.9 → 0.19.0

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.
Files changed (35) hide show
  1. package/dist/build.tsbuildinfo +1 -1
  2. package/dist/commands/build.js +0 -1
  3. package/dist/commands/cloud-support.js +0 -1
  4. package/dist/commands/dev/index.js +0 -1
  5. package/dist/commands/dev/utils.js +0 -1
  6. package/dist/commands/lint.js +0 -1
  7. package/dist/commands/new/index.js +0 -1
  8. package/dist/commands/new/prompts.js +0 -1
  9. package/dist/commands/new/utils.js +0 -1
  10. package/dist/commands/prerelease.js +0 -1
  11. package/dist/commands/release.js +0 -1
  12. package/dist/configs/eslint.js +0 -1
  13. package/dist/index.js +0 -1
  14. package/dist/template/core.js +0 -1
  15. package/dist/template/templates/declarative/custom/ast.js +0 -1
  16. package/dist/template/templates/declarative/custom/prompts.js +0 -1
  17. package/dist/template/templates/declarative/custom/template/package.json +46 -50
  18. package/dist/template/templates/declarative/custom/template.js +0 -1
  19. package/dist/template/templates/declarative/custom/types.js +0 -1
  20. package/dist/template/templates/declarative/github-issues/template/package.json +48 -52
  21. package/dist/template/templates/declarative/github-issues/template.js +0 -1
  22. package/dist/template/templates/index.js +0 -1
  23. package/dist/template/templates/programmatic/example/template/package.json +46 -50
  24. package/dist/template/templates/programmatic/example/template.js +0 -1
  25. package/dist/utils/ast.js +0 -1
  26. package/dist/utils/child-process.js +0 -1
  27. package/dist/utils/command-suggestions.js +0 -1
  28. package/dist/utils/filesystem.js +0 -1
  29. package/dist/utils/git.js +0 -1
  30. package/dist/utils/json.js +0 -1
  31. package/dist/utils/package-manager.js +0 -1
  32. package/dist/utils/package.js +0 -1
  33. package/dist/utils/prompts.js +0 -1
  34. package/dist/utils/validation.js +0 -1
  35. package/package.json +4 -4
@@ -58,4 +58,3 @@ async function copyStaticFiles() {
58
58
  return await (0, promises_1.cp)(filePath, destPath, { recursive: true });
59
59
  }));
60
60
  }
61
- //# sourceMappingURL=build.js.map
@@ -133,4 +133,3 @@ CloudSupport.args = {
133
133
  }),
134
134
  };
135
135
  exports.default = CloudSupport;
136
- //# sourceMappingURL=cloud-support.js.map
@@ -100,4 +100,3 @@ Dev.flags = {
100
100
  }),
101
101
  };
102
102
  exports.default = Dev;
103
- //# sourceMappingURL=index.js.map
@@ -459,4 +459,3 @@ function buildHelpText(hasN8n, isN8nReady) {
459
459
  }
460
460
  return quitText;
461
461
  }
462
- //# sourceMappingURL=utils.js.map
@@ -121,4 +121,3 @@ Lint.flags = {
121
121
  fix: core_1.Flags.boolean({ description: 'Automatically fix problems', default: false }),
122
122
  };
123
123
  exports.default = Lint;
124
- //# sourceMappingURL=lint.js.map
@@ -138,4 +138,3 @@ New.flags = {
138
138
  }),
139
139
  };
140
140
  exports.default = New;
141
- //# sourceMappingURL=index.js.map
@@ -39,4 +39,3 @@ const declarativeTemplatePrompt = async () => await (0, prompts_2.withCancelHand
39
39
  initialValue: 'githubIssues',
40
40
  }));
41
41
  exports.declarativeTemplatePrompt = declarativeTemplatePrompt;
42
- //# sourceMappingURL=prompts.js.map
@@ -10,4 +10,3 @@ const createIntro = async () => {
10
10
  return await (0, prompts_1.getCommandHeader)(commandName);
11
11
  };
12
12
  exports.createIntro = createIntro;
13
- //# sourceMappingURL=utils.js.map
@@ -17,4 +17,3 @@ Prerelease.examples = ['<%= config.bin %> <%= command.id %>'];
17
17
  Prerelease.flags = {};
18
18
  Prerelease.hidden = true;
19
19
  exports.default = Prerelease;
20
- //# sourceMappingURL=prerelease.js.map
@@ -49,4 +49,3 @@ Release.description = 'Publish your community node package to npm';
49
49
  Release.examples = ['<%= config.bin %> <%= command.id %>'];
50
50
  Release.flags = {};
51
51
  exports.default = Release;
52
- //# sourceMappingURL=release.js.map
@@ -62,4 +62,3 @@ function createConfig(supportCloud = true) {
62
62
  exports.config = createConfig();
63
63
  exports.configWithoutCloudSupport = createConfig(false);
64
64
  exports.default = exports.config;
65
- //# sourceMappingURL=eslint.js.map
package/dist/index.js CHANGED
@@ -20,4 +20,3 @@ exports.commands = {
20
20
  lint: lint_1.default,
21
21
  'cloud-support': cloud_support_1.default,
22
22
  };
23
- //# sourceMappingURL=index.js.map
@@ -52,4 +52,3 @@ function createTemplate(template) {
52
52
  },
53
53
  };
54
54
  }
55
- //# sourceMappingURL=core.js.map
@@ -107,4 +107,3 @@ function addCredentialToNode({ nodePath, credentialName, }) {
107
107
  }
108
108
  return sourceFile;
109
109
  }
110
- //# sourceMappingURL=ast.js.map
@@ -77,4 +77,3 @@ const oauthFlowPrompt = async () => await (0, prompts_2.withCancelHandler)((0, p
77
77
  initialValue: 'authorizationCode',
78
78
  }));
79
79
  exports.oauthFlowPrompt = oauthFlowPrompt;
80
- //# sourceMappingURL=prompts.js.map
@@ -1,52 +1,48 @@
1
1
  {
2
- "name": "{{nodePackageName}}",
3
- "version": "0.1.0",
4
- "description": "",
5
- "license": "MIT",
6
- "homepage": "",
7
- "keywords": [
8
- "n8n-community-node-package"
9
- ],
10
- "author": {
11
- "name": "{{user.name}}",
12
- "email": "{{user.email}}"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/<...>/n8n-nodes-<...>.git"
17
- },
18
- "scripts": {
19
- "build": "n8n-node build",
20
- "build:watch": "tsc --watch",
21
- "dev": "n8n-node dev",
22
- "lint": "n8n-node lint",
23
- "lint:fix": "n8n-node lint --fix",
24
- "release": "n8n-node release",
25
- "prepublishOnly": "n8n-node prerelease"
26
- },
27
- "files": [
28
- "dist"
29
- ],
30
- "n8n": {
31
- "n8nNodesApiVersion": 1,
32
- "strict": true,
33
- "credentials": [],
34
- "nodes": [
35
- "dist/nodes/Example/Example.node.js"
36
- ]
37
- },
38
- "devDependencies": {
39
- "@atom8n/node-cli": "*",
40
- "eslint": "9.32.0",
41
- "prettier": "3.6.2",
42
- "release-it": "^19.0.4",
43
- "typescript": "5.9.2"
44
- },
45
- "peerDependencies": {
46
- "@atom8n/n8n-workflow": "*"
47
- },
48
- "publishConfig": {
49
- "registry": "https://npm.pkg.github.com",
50
- "access": "public"
51
- }
2
+ "name": "{{nodePackageName}}",
3
+ "version": "0.1.0",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "homepage": "",
7
+ "keywords": [
8
+ "n8n-community-node-package"
9
+ ],
10
+ "author": {
11
+ "name": "{{user.name}}",
12
+ "email": "{{user.email}}"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/<...>/n8n-nodes-<...>.git"
17
+ },
18
+ "scripts": {
19
+ "build": "n8n-node build",
20
+ "build:watch": "tsc --watch",
21
+ "dev": "n8n-node dev",
22
+ "lint": "n8n-node lint",
23
+ "lint:fix": "n8n-node lint --fix",
24
+ "release": "n8n-node release",
25
+ "prepublishOnly": "n8n-node prerelease"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "n8n": {
31
+ "n8nNodesApiVersion": 1,
32
+ "strict": true,
33
+ "credentials": [],
34
+ "nodes": [
35
+ "dist/nodes/Example/Example.node.js"
36
+ ]
37
+ },
38
+ "devDependencies": {
39
+ "@n8n/node-cli": "*",
40
+ "eslint": "9.32.0",
41
+ "prettier": "3.6.2",
42
+ "release-it": "^19.0.4",
43
+ "typescript": "5.9.2"
44
+ },
45
+ "peerDependencies": {
46
+ "n8n-workflow": "*"
47
+ }
52
48
  }
@@ -80,4 +80,3 @@ async function addCredential(data) {
80
80
  await (0, filesystem_1.writeFileSafe)(srcNodePath, updatedNodeAst.getFullText());
81
81
  }
82
82
  }
83
- //# sourceMappingURL=template.js.map
@@ -1,3 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1,55 +1,51 @@
1
1
  {
2
- "name": "{{nodePackageName}}",
3
- "version": "0.1.0",
4
- "description": "",
5
- "license": "MIT",
6
- "homepage": "",
7
- "keywords": [
8
- "n8n-community-node-package"
9
- ],
10
- "author": {
11
- "name": "{{user.name}}",
12
- "email": "{{user.email}}"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/<...>/n8n-nodes-<...>.git"
17
- },
18
- "scripts": {
19
- "build": "n8n-node build",
20
- "build:watch": "tsc --watch",
21
- "dev": "n8n-node dev",
22
- "lint": "n8n-node lint",
23
- "lint:fix": "n8n-node lint --fix",
24
- "release": "n8n-node release",
25
- "prepublishOnly": "n8n-node prerelease"
26
- },
27
- "files": [
28
- "dist"
29
- ],
30
- "n8n": {
31
- "n8nNodesApiVersion": 1,
32
- "strict": true,
33
- "credentials": [
34
- "dist/credentials/GithubIssuesApi.credentials.js",
35
- "dist/credentials/GithubIssuesOAuth2Api.credentials.js"
2
+ "name": "{{nodePackageName}}",
3
+ "version": "0.1.0",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "homepage": "",
7
+ "keywords": [
8
+ "n8n-community-node-package"
36
9
  ],
37
- "nodes": [
38
- "dist/nodes/GithubIssues/GithubIssues.node.js"
39
- ]
40
- },
41
- "devDependencies": {
42
- "@atom8n/node-cli": "*",
43
- "eslint": "9.32.0",
44
- "prettier": "3.6.2",
45
- "release-it": "^19.0.4",
46
- "typescript": "5.9.2"
47
- },
48
- "peerDependencies": {
49
- "@atom8n/n8n-workflow": "*"
50
- },
51
- "publishConfig": {
52
- "registry": "https://npm.pkg.github.com",
53
- "access": "public"
54
- }
10
+ "author": {
11
+ "name": "{{user.name}}",
12
+ "email": "{{user.email}}"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/<...>/n8n-nodes-<...>.git"
17
+ },
18
+ "scripts": {
19
+ "build": "n8n-node build",
20
+ "build:watch": "tsc --watch",
21
+ "dev": "n8n-node dev",
22
+ "lint": "n8n-node lint",
23
+ "lint:fix": "n8n-node lint --fix",
24
+ "release": "n8n-node release",
25
+ "prepublishOnly": "n8n-node prerelease"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "n8n": {
31
+ "n8nNodesApiVersion": 1,
32
+ "strict": true,
33
+ "credentials": [
34
+ "dist/credentials/GithubIssuesApi.credentials.js",
35
+ "dist/credentials/GithubIssuesOAuth2Api.credentials.js"
36
+ ],
37
+ "nodes": [
38
+ "dist/nodes/GithubIssues/GithubIssues.node.js"
39
+ ]
40
+ },
41
+ "devDependencies": {
42
+ "@n8n/node-cli": "*",
43
+ "eslint": "9.32.0",
44
+ "prettier": "3.6.2",
45
+ "release-it": "^19.0.4",
46
+ "typescript": "5.9.2"
47
+ },
48
+ "peerDependencies": {
49
+ "n8n-workflow": "*"
50
+ }
55
51
  }
@@ -11,4 +11,3 @@ exports.githubIssuesTemplate = (0, core_1.createTemplate)({
11
11
  description: 'Demo node with multiple operations and credentials',
12
12
  path: node_path_1.default.join(__dirname, 'template'),
13
13
  });
14
- //# sourceMappingURL=template.js.map
@@ -25,4 +25,3 @@ function isTemplateType(val) {
25
25
  function isTemplateName(type, name) {
26
26
  return typeof name === 'string' && name in exports.templates[type];
27
27
  }
28
- //# sourceMappingURL=index.js.map
@@ -1,52 +1,48 @@
1
1
  {
2
- "name": "{{nodePackageName}}",
3
- "version": "0.1.0",
4
- "description": "",
5
- "license": "MIT",
6
- "homepage": "",
7
- "keywords": [
8
- "n8n-community-node-package"
9
- ],
10
- "author": {
11
- "name": "{{user.name}}",
12
- "email": "{{user.email}}"
13
- },
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/<...>/n8n-nodes-<...>.git"
17
- },
18
- "scripts": {
19
- "build": "n8n-node build",
20
- "build:watch": "tsc --watch",
21
- "dev": "n8n-node dev",
22
- "lint": "n8n-node lint",
23
- "lint:fix": "n8n-node lint --fix",
24
- "release": "n8n-node release",
25
- "prepublishOnly": "n8n-node prerelease"
26
- },
27
- "files": [
28
- "dist"
29
- ],
30
- "n8n": {
31
- "n8nNodesApiVersion": 1,
32
- "strict": true,
33
- "credentials": [],
34
- "nodes": [
35
- "dist/nodes/Example/Example.node.js"
36
- ]
37
- },
38
- "devDependencies": {
39
- "@atom8n/node-cli": "*",
40
- "eslint": "9.32.0",
41
- "prettier": "3.6.2",
42
- "release-it": "^19.0.4",
43
- "typescript": "5.9.2"
44
- },
45
- "peerDependencies": {
46
- "@atom8n/n8n-workflow": "*"
47
- },
48
- "publishConfig": {
49
- "registry": "https://npm.pkg.github.com",
50
- "access": "public"
51
- }
2
+ "name": "{{nodePackageName}}",
3
+ "version": "0.1.0",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "homepage": "",
7
+ "keywords": [
8
+ "n8n-community-node-package"
9
+ ],
10
+ "author": {
11
+ "name": "{{user.name}}",
12
+ "email": "{{user.email}}"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/<...>/n8n-nodes-<...>.git"
17
+ },
18
+ "scripts": {
19
+ "build": "n8n-node build",
20
+ "build:watch": "tsc --watch",
21
+ "dev": "n8n-node dev",
22
+ "lint": "n8n-node lint",
23
+ "lint:fix": "n8n-node lint --fix",
24
+ "release": "n8n-node release",
25
+ "prepublishOnly": "n8n-node prerelease"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "n8n": {
31
+ "n8nNodesApiVersion": 1,
32
+ "strict": true,
33
+ "credentials": [],
34
+ "nodes": [
35
+ "dist/nodes/Example/Example.node.js"
36
+ ]
37
+ },
38
+ "devDependencies": {
39
+ "@n8n/node-cli": "*",
40
+ "eslint": "9.32.0",
41
+ "prettier": "3.6.2",
42
+ "release-it": "^19.0.4",
43
+ "typescript": "5.9.2"
44
+ },
45
+ "peerDependencies": {
46
+ "n8n-workflow": "*"
47
+ }
52
48
  }
@@ -11,4 +11,3 @@ exports.exampleTemplate = (0, core_1.createTemplate)({
11
11
  description: 'Barebones example node',
12
12
  path: node_path_1.default.join(__dirname, 'template'),
13
13
  });
14
- //# sourceMappingURL=template.js.map
package/dist/utils/ast.js CHANGED
@@ -29,4 +29,3 @@ const getChildObjectLiteral = ({ obj, key, }) => {
29
29
  .getInitializerIfKindOrThrow(ts_morph_1.SyntaxKind.ObjectLiteralExpression);
30
30
  };
31
31
  exports.getChildObjectLiteral = getChildObjectLiteral;
32
- //# sourceMappingURL=ast.js.map
@@ -62,4 +62,3 @@ async function runCommand(cmd, args = [], opts = {}) {
62
62
  });
63
63
  });
64
64
  }
65
- //# sourceMappingURL=child-process.js.map
@@ -27,4 +27,3 @@ async function suggestLintCommand() {
27
27
  const execCommand = await getExecCommand('script');
28
28
  return formatCommand(`${execCommand} lint`);
29
29
  }
30
- //# sourceMappingURL=command-suggestions.js.map
@@ -102,4 +102,3 @@ async function createSymlink(target, linkPath) {
102
102
  await promises_1.default.symlink(target, linkPath, 'junction');
103
103
  }
104
104
  }
105
- //# sourceMappingURL=filesystem.js.map
package/dist/utils/git.js CHANGED
@@ -33,4 +33,3 @@ function tryReadGitUser() {
33
33
  async function initGit(dir) {
34
34
  await (0, child_process_1.runCommand)('git', ['init', '-b', 'main'], { cwd: dir });
35
35
  }
36
- //# sourceMappingURL=git.js.map
@@ -9,4 +9,3 @@ function jsonParse(data) {
9
9
  return null;
10
10
  }
11
11
  }
12
- //# sourceMappingURL=json.js.map
@@ -45,4 +45,3 @@ async function detectPackageManager() {
45
45
  return fromLockFiles;
46
46
  return null;
47
47
  }
48
- //# sourceMappingURL=package-manager.js.map
@@ -50,4 +50,3 @@ async function addCredentialPackageJson(dirPath, credential) {
50
50
  return packageJson;
51
51
  });
52
52
  }
53
- //# sourceMappingURL=package.js.map
@@ -62,4 +62,3 @@ async function printCommandHeader(commandName) {
62
62
  const header = await getCommandHeader(commandName);
63
63
  process.stdout.write(`${header}\n\n`);
64
64
  }
65
- //# sourceMappingURL=prompts.js.map
@@ -20,4 +20,3 @@ function isNodeErrnoException(error) {
20
20
  function isEnoentError(error) {
21
21
  return isNodeErrnoException(error) && error.code === 'ENOENT';
22
22
  }
23
- //# sourceMappingURL=validation.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atom8n/node-cli",
3
- "version": "0.17.9",
3
+ "version": "0.19.0",
4
4
  "description": "Official CLI for developing community nodes for n8n",
5
5
  "bin": {
6
6
  "n8n-node": "bin/n8n-node.mjs"
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@clack/prompts": "^0.11.0",
49
- "@n8n/eslint-plugin-community-nodes": "npm:@atom8n/eslint-plugin-community-nodes@0.7.9",
49
+ "@n8n/eslint-plugin-community-nodes": "npm:@atom8n/eslint-plugin-community-nodes@0.9.0",
50
50
  "@oclif/core": "^4.5.2",
51
51
  "change-case": "^5.4.4",
52
52
  "eslint-import-resolver-typescript": "^4.4.3",
@@ -63,8 +63,8 @@
63
63
  },
64
64
  "devDependencies": {
65
65
  "@eslint/js": "^9.29.0",
66
- "@n8n/typescript-config": "npm:@atom8n/typescript-config@1.3.9",
67
- "@n8n/vitest-config": "npm:@atom8n/vitest-config@1.5.9",
66
+ "@n8n/typescript-config": "npm:@atom8n/typescript-config@1.5.0",
67
+ "@n8n/vitest-config": "npm:@atom8n/vitest-config@1.7.0",
68
68
  "@oclif/test": "^4.1.13",
69
69
  "eslint": "9.29.0",
70
70
  "typescript": "5.9.2",