feat(core): Update config defaults for for v1 (no-changelog) (#6196)

feat(core): Change config defaults when the release is V1
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2023-05-08 11:46:20 +00:00
committed by GitHub
parent 14bcd4c2f7
commit b499d27f08
2 changed files with 5 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
/* eslint-disable @typescript-eslint/naming-convention */
import { readFileSync } from 'fs';
import { resolve, join, dirname } from 'path';
import { major } from 'semver';
import type { n8n } from 'n8n-core';
import { RESPONSE_ERROR_MESSAGES as CORE_RESPONSE_ERROR_MESSAGES, UserSettings } from 'n8n-core';
import { jsonParse } from 'n8n-workflow';
@@ -29,6 +30,7 @@ export function getN8nPackageJson() {
export const START_NODES = ['n8n-nodes-base.start', 'n8n-nodes-base.manualTrigger'];
export const N8N_VERSION = getN8nPackageJson().version;
export const IS_V1_RELEASE = major(N8N_VERSION) > 0;
export const NODE_PACKAGE_PREFIX = 'n8n-nodes-';