Skip to content

Commit b57308f

Browse files
committed
Add more constants
1 parent de91f38 commit b57308f

15 files changed

+60
-12
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare const BUN_LOCK: 'bun.lock'
2+
export = BUN_LOCK

registry/lib/constants/bun-lock.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = 'bun.lock'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare const BUN_LOCKB: 'bun.lockb'
2+
export = BUN_LOCKB
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = 'bun.lockb'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare const DOT_PACKAGE_LOCK_JSON: '.package-lock.json'
2+
export = DOT_PACKAGE_LOCK_JSON
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
'use strict'
2+
3+
module.exports = '.package-lock.json'

registry/lib/constants/hidden-package-lock-json.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

registry/lib/constants/hidden-package-lock-json.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

registry/lib/constants/index.d.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,14 @@ import abortSignal from './abort-signal'
33
import AT_LATEST from './at-latest'
44
import BIOME_JSON from './biome-json'
55
import BUN from './bun'
6+
import BUN_LOCK from './bun-lock'
7+
import BUN_LOCKB from './bun-lockb'
68
import CI from './ci'
79
import COLUMN_LIMIT from './column-limit'
810
import copyLeftLicenses from './copy-left-licenses'
911
import DARWIN from './darwin'
1012
import DOT_GIT_DIR from './dot-git-dir'
13+
import DOT_PACKAGE_LOCK_JSON from './dot-package-lock-json'
1114
import DOT_SOCKET_DIR from './dot-socket-dir'
1215
import EMPTY_FILE from './empty-file'
1316
import EnvObject from './env'
@@ -32,7 +35,6 @@ import EXTENSIONS from './extensions'
3235
import EXTENSIONS_JSON from './extensions-json'
3336
import getIpc from './get-ipc'
3437
import GITIGNORE from './gitignore'
35-
import HIDDEN_PACKAGE_LOCK_JSON from './hidden-package-lock-json'
3638
import IpcObject from './ipc-object'
3739
import kInternalsSymbol from './k-internals-symbol'
3840
import LATEST from './latest'
@@ -57,6 +59,7 @@ import nodeNoWarningsFlags from './node-no-warnings-flags'
5759
import NODE_VERSION from './node-version'
5860
import NPM from './npm'
5961
import npmExecPath from './npm-exec-path'
62+
import NPM_SHRINKWRAP_JSON from './npm-shrinkwrap-json'
6063
import npmRealExecPath from './npm-real-exec-path'
6164
import NPX from './npx'
6265
import OVERRIDES from './overrides'
@@ -106,6 +109,7 @@ import UNLICENSED from './unlicensed'
106109
import UTF8 from './utf8'
107110
import VITEST from './vitest'
108111
import VLT from './vlt'
112+
import VLT_LOCK_JSON from './vlt-lock-json'
109113
import WIN32 from './win32'
110114
import YARN from './yarn'
111115
import YARN_BERRY from './yarn-berry'
@@ -131,10 +135,13 @@ declare const Constants: {
131135
readonly AT_LATEST: typeof AT_LATEST
132136
readonly BIOME_JSON: typeof BIOME_JSON
133137
readonly BUN: typeof BUN
138+
readonly BUN_LOCK: typeof BUN_LOCK
139+
readonly BUN_LOCKB: typeof BUN_LOCKB
134140
readonly CI: typeof CI
135141
readonly COLUMN_LIMIT: typeof COLUMN_LIMIT
136142
readonly DARWIN: typeof DARWIN
137143
readonly DOT_GIT_DIR: typeof DOT_GIT_DIR
144+
readonly DOT_PACKAGE_LOCK_JSON: typeof DOT_PACKAGE_LOCK_JSON
138145
readonly DOT_SOCKET_DIR: typeof DOT_SOCKET_DIR
139146
readonly EMPTY_FILE: typeof EMPTY_FILE
140147
readonly ENV: typeof EnvObject
@@ -157,7 +164,6 @@ declare const Constants: {
157164
readonly EXTENSIONS: typeof EXTENSIONS
158165
readonly EXTENSIONS_JSON: typeof EXTENSIONS_JSON
159166
readonly GITIGNORE: typeof GITIGNORE
160-
readonly HIDDEN_PACKAGE_LOCK_JSON: typeof HIDDEN_PACKAGE_LOCK_JSON
161167
readonly ipcObject: typeof IpcObject
162168
readonly LATEST: typeof LATEST
163169
readonly LICENSE: typeof LICENSE
@@ -175,6 +181,7 @@ declare const Constants: {
175181
readonly NODE_MODULES_GLOB_RECURSIVE: typeof NODE_MODULES_GLOB_RECURSIVE
176182
readonly NODE_VERSION: typeof NODE_VERSION
177183
readonly NPM: typeof NPM
184+
readonly NPM_SHRINKWRAP_JSON: typeof NPM_SHRINKWRAP_JSON
178185
readonly NPX: typeof NPX
179186
readonly OVERRIDES: typeof OVERRIDES
180187
readonly PACKAGE_DEFAULT_SOCKET_CATEGORIES: typeof PACKAGE_DEFAULT_SOCKET_CATEGORIES
@@ -216,6 +223,7 @@ declare const Constants: {
216223
readonly UTF8: typeof UTF8
217224
readonly VITEST: typeof VITEST
218225
readonly VLT: typeof VLT
226+
readonly VLT_LOCK_JSON: typeof VLT_LOCK_JSON
219227
readonly WIN32: typeof WIN32
220228
readonly YARN: typeof YARN
221229
readonly YARN_BERRY: typeof YARN_BERRY

registry/lib/constants/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ const props = {
99
AT_LATEST: '@latest',
1010
BIOME_JSON: 'biome.json',
1111
BUN: 'bun',
12+
BUN_LOCK: 'bun.lock',
13+
BUN_LOCKB: 'bun.lockb',
1214
CI: 'CI',
1315
COLUMN_LIMIT: 80,
1416
DARWIN: undefined,
1517
DOT_GIT_DIR: '.git',
18+
DOT_PACKAGE_LOCK_JSON: '.package-lock.json',
1619
DOT_SOCKET_DIR: '.socket',
1720
EMPTY_FILE: '/* empty */\n',
1821
ENV: undefined,
@@ -35,7 +38,6 @@ const props = {
3538
EXTENSIONS: 'extensions',
3639
EXTENSIONS_JSON: 'extensions.json',
3740
GITIGNORE: '.gitignore',
38-
HIDDEN_PACKAGE_LOCK_JSON: '.package-lock.json',
3941
LATEST: 'latest',
4042
LICENSE: 'LICENSE',
4143
LICENSE_GLOB: 'LICEN[CS]E{[.-]*,}',
@@ -52,6 +54,7 @@ const props = {
5254
NODE_MODULES_GLOB_RECURSIVE: '**/node_modules',
5355
NODE_VERSION: undefined,
5456
NPM: 'npm',
57+
NPM_SHRINKWRAP_JSON: 'npm-shrinkwrap.json',
5558
NPX: 'npx',
5659
OVERRIDES: 'overrides',
5760
PACKAGE_DEFAULT_SOCKET_CATEGORIES: undefined,
@@ -94,6 +97,7 @@ const props = {
9497
UTF8: 'utf8',
9598
VITEST: 'VITEST',
9699
VLT: 'vlt',
100+
VLT_LOCK_JSON: 'vlt-lock.json',
97101
WIN32: undefined,
98102
YARN: 'yarn',
99103
YARN_BERRY: 'yarn/berry',

0 commit comments

Comments
 (0)