1- import { Config , Env , Nested } from '../decorators' ;
1+ import { Config , Env } from '../decorators' ;
22
33function isStringArray ( input : unknown ) : input is string [ ] {
44 return Array . isArray ( input ) && input . every ( ( item ) => typeof item === 'string' ) ;
@@ -20,33 +20,6 @@ class JsonStringArray extends Array<string> {
2020 }
2121}
2222
23- @Config
24- class CommunityPackagesConfig {
25- /** Whether to enable community packages */
26- @Env ( 'N8N_COMMUNITY_PACKAGES_ENABLED' )
27- enabled : boolean = true ;
28-
29- /** NPM registry URL to pull community packages from */
30- @Env ( 'N8N_COMMUNITY_PACKAGES_REGISTRY' )
31- registry : string = 'https://registry.npmjs.org' ;
32-
33- /** Whether to reinstall any missing community packages */
34- @Env ( 'N8N_REINSTALL_MISSING_PACKAGES' )
35- reinstallMissing : boolean = false ;
36-
37- /** Whether to block installation of not verified packages */
38- @Env ( 'N8N_UNVERIFIED_PACKAGES_ENABLED' )
39- unverifiedEnabled : boolean = true ;
40-
41- /** Whether to enable and show search suggestion of packages verified by n8n */
42- @Env ( 'N8N_VERIFIED_PACKAGES_ENABLED' )
43- verifiedEnabled : boolean = true ;
44-
45- /** Whether to load community packages */
46- @Env ( 'N8N_COMMUNITY_PACKAGES_PREVENT_LOADING' )
47- preventLoading : boolean = false ;
48- }
49-
5023@Config
5124export class NodesConfig {
5225 /** Node types to load. Includes all if unspecified. @example '["n8n-nodes-base.hackerNews"]' */
@@ -64,7 +37,4 @@ export class NodesConfig {
6437 /** Whether to enable Python execution on the Code node. */
6538 @Env ( 'N8N_PYTHON_ENABLED' )
6639 pythonEnabled : boolean = true ;
67-
68- @Nested
69- communityPackages : CommunityPackagesConfig ;
7040}
0 commit comments