Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulGautamSingh committed Jul 17, 2024
1 parent 7b57891 commit 6842138
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 13 deletions.
5 changes: 2 additions & 3 deletions lib/expose.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

/**
* returns renovates package.json
* @type {import('./types').RenovatePackageJson}
*/
// const pkg = (() => require('../package.json'))();
const pkg = (() => require('../package.json'))();

/**
* return's re2
Expand Down Expand Up @@ -40,7 +39,7 @@ function sqlite() {

module.exports = {
re2,
// pkg,
pkg,
openpgp,
prettier,
sqlite,
Expand Down
2 changes: 1 addition & 1 deletion lib/instrumentation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
} from '@opentelemetry/sdk-trace-base';
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions';
import pkg from '../../package.json';
import { pkg } from '../expose.cjs';
import {
isTraceDebuggingEnabled,
isTraceSendingEnabled,
Expand Down
2 changes: 1 addition & 1 deletion lib/util/http/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import merge from 'deepmerge';
import got, { Options, RequestError, RetryObject } from 'got';
import type { SetRequired } from 'type-fest';
import { infer as Infer, type ZodError, ZodType } from 'zod';
import pkg from '../../../package.json';
import { GlobalConfig } from '../../config/global';
import { HOST_DISABLED } from '../../constants/error-messages';
import { pkg } from '../../expose.cjs';
import { logger } from '../../logger';
import { ExternalHostError } from '../../types/errors/external-host-error';
import * as memCache from '../cache/memory';
Expand Down
2 changes: 1 addition & 1 deletion lib/workers/global/config/parse/cli.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Command } from 'commander';
import pkg from '../../../../../package.json';
import { getOptions } from '../../../../config/options';
import type { AllConfig } from '../../../../config/types';
import { pkg } from '../../../../expose.cjs';
import { logger } from '../../../../logger';
import { regEx } from '../../../../util/regex';
import { coersions } from './coersions';
Expand Down
2 changes: 1 addition & 1 deletion lib/workers/global/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { ERROR } from 'bunyan';
import fs from 'fs-extra';
import semver from 'semver';
import upath from 'upath';
import pkg from '../../../package.json';
import * as configParser from '../../config';
import { mergeChildConfig } from '../../config';
import { GlobalConfig } from '../../config/global';
Expand All @@ -15,6 +14,7 @@ import type {
RenovateRepository,
} from '../../config/types';
import { CONFIG_PRESETS_INVALID } from '../../constants/error-messages';
import { pkg } from '../../expose.cjs';
import { instrument } from '../../instrumentation';
import { exportStats, finalizeReport } from '../../instrumentation/reporting';
import { getProblems, logger, setMeta } from '../../logger';
Expand Down
2 changes: 1 addition & 1 deletion lib/workers/repository/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import fs from 'fs-extra';
import pkg from '../../../package.json';
import { GlobalConfig } from '../../config/global';
import { applySecretsToConfig } from '../../config/secrets';
import type { RenovateConfig } from '../../config/types';
Expand All @@ -8,6 +7,7 @@ import {
REPOSITORY_FORKED,
REPOSITORY_NO_CONFIG,
} from '../../constants/error-messages';
import { pkg } from '../../expose.cjs';
import { instrument } from '../../instrumentation';
import { addExtractionStats } from '../../instrumentation/reporting';
import { logger, setMeta } from '../../logger';
Expand Down
2 changes: 1 addition & 1 deletion lib/workers/repository/update/pr/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import is from '@sindresorhus/is';
import pkg from '../../../../../package.json';
import { GlobalConfig } from '../../../../config/global';
import type { RenovateConfig } from '../../../../config/types';
import {
PLATFORM_INTEGRATION_UNAUTHORIZED,
PLATFORM_RATE_LIMIT_EXCEEDED,
REPOSITORY_CHANGED,
} from '../../../../constants/error-messages';
import { pkg } from '../../../../expose.cjs';
import { logger } from '../../../../logger';
import {
PlatformPrOptions,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"version": "0.0.0-semantic-release",
"type": "commonjs",
"bin": {
"renovate": "dist/lib/renovate.js",
"renovate-config-validator": "dist/lib/config-validator.js"
"renovate": "dist/renovate.js",
"renovate-config-validator": "dist/config-validator.js"
},
"scripts": {
"build": "run-s clean 'generate:*' 'compile:*' create-json-schema",
Expand Down
2 changes: 1 addition & 1 deletion tools/docker/bin/renovate
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ if [[ -f "/usr/local/etc/env" && -z "${CONTAINERBASE_ENV+x}" ]]; then
. /usr/local/etc/env
fi

node "${RENOVATE_NODE_ARGS[@]}" /usr/local/renovate/dist/lib/renovate.js "$@"
node "${RENOVATE_NODE_ARGS[@]}" /usr/local/renovate/dist/renovate.js "$@"
2 changes: 1 addition & 1 deletion tools/docker/bin/renovate-config-validator
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ if [[ -f "/usr/local/etc/env" && -z "${CONTAINERBASE_ENV+x}" ]]; then
. /usr/local/etc/env
fi

node /usr/local/renovate/dist/lib/config-validator.js "$@"
node /usr/local/renovate/dist/config-validator.js "$@"

0 comments on commit 6842138

Please sign in to comment.