vlt 0.0.0-3 → 0.0.0-4
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.
- package/README.md +2 -1
- package/package.json +17 -10
- package/postinstall.cjs +56 -0
- package/vlix +25 -0
- package/vlr +25 -0
- package/vlrx +25 -0
- package/vlt +25 -0
- package/vlx +25 -0
- package/cache-unzip-src-unzip.js +0 -7896
- package/cache-unzip-src-unzip.js.map +0 -7
- package/chunk-227OF2U2.js +0 -1183
- package/chunk-227OF2U2.js.map +0 -7
- package/chunk-3HXIYJS2.js +0 -54
- package/chunk-3HXIYJS2.js.map +0 -7
- package/chunk-AA6MVXJX.js +0 -19823
- package/chunk-AA6MVXJX.js.map +0 -7
- package/chunk-BCK4ZGNG.js +0 -41
- package/chunk-BCK4ZGNG.js.map +0 -7
- package/chunk-DH36SF3E.js +0 -35
- package/chunk-DH36SF3E.js.map +0 -7
- package/chunk-FNKWJ7AZ.js +0 -1379
- package/chunk-FNKWJ7AZ.js.map +0 -7
- package/chunk-H77UDCL3.js +0 -9820
- package/chunk-H77UDCL3.js.map +0 -7
- package/chunk-HL76E44L.js +0 -73
- package/chunk-HL76E44L.js.map +0 -7
- package/chunk-IN7DEH7F.js +0 -44
- package/chunk-IN7DEH7F.js.map +0 -7
- package/chunk-JLP2QDXQ.js +0 -1137
- package/chunk-JLP2QDXQ.js.map +0 -7
- package/chunk-JMGSFQ32.js +0 -969
- package/chunk-JMGSFQ32.js.map +0 -7
- package/chunk-JQRUGUZ3.js +0 -512
- package/chunk-JQRUGUZ3.js.map +0 -7
- package/chunk-K2BYYPM7.js +0 -8656
- package/chunk-K2BYYPM7.js.map +0 -7
- package/chunk-LNUDEBGP.js +0 -2071
- package/chunk-LNUDEBGP.js.map +0 -7
- package/chunk-MV5ZQ3LW.js +0 -1105
- package/chunk-MV5ZQ3LW.js.map +0 -7
- package/chunk-O7CDQZDW.js +0 -5234
- package/chunk-O7CDQZDW.js.map +0 -7
- package/chunk-OFW7MWFP.js +0 -82
- package/chunk-OFW7MWFP.js.map +0 -7
- package/chunk-PGDJ2ZZ6.js +0 -4810
- package/chunk-PGDJ2ZZ6.js.map +0 -7
- package/chunk-POVPHE2F.js +0 -1864
- package/chunk-POVPHE2F.js.map +0 -7
- package/chunk-PTVPYZHU.js +0 -72
- package/chunk-PTVPYZHU.js.map +0 -7
- package/chunk-SXBMMXTY.js +0 -11837
- package/chunk-SXBMMXTY.js.map +0 -7
- package/chunk-UZZ72UON.js +0 -152
- package/chunk-UZZ72UON.js.map +0 -7
- package/chunk-V7KRP7IO.js +0 -481
- package/chunk-V7KRP7IO.js.map +0 -7
- package/chunk-WVNUD273.js +0 -83
- package/chunk-WVNUD273.js.map +0 -7
- package/chunk-WYPE3MV4.js +0 -62
- package/chunk-WYPE3MV4.js.map +0 -7
- package/chunk-ZRNJWPYC.js +0 -37
- package/chunk-ZRNJWPYC.js.map +0 -7
- package/cli-package.json +0 -107
- package/config-3QQHUYLI.js +0 -179
- package/config-3QQHUYLI.js.map +0 -7
- package/devtools-5BBQJTDW.js +0 -16682
- package/devtools-5BBQJTDW.js.map +0 -7
- package/exec-C6GK336U.js +0 -50
- package/exec-C6GK336U.js.map +0 -7
- package/gui-IQ4M4K5X.js +0 -46
- package/gui-IQ4M4K5X.js.map +0 -7
- package/gui-assets/favicon.ico +0 -0
- package/gui-assets/fonts/geist-mono.ttf +0 -0
- package/gui-assets/fonts/inter.ttf +0 -0
- package/gui-assets/images/folder.png +0 -0
- package/gui-assets/index.html +0 -34
- package/gui-assets/index.js +0 -1549
- package/gui-assets/index.js.map +0 -7
- package/gui-assets/main.css +0 -1
- package/help-R6TSKVEA.js +0 -25
- package/help-R6TSKVEA.js.map +0 -7
- package/init-UTJGYULC.js +0 -25
- package/init-UTJGYULC.js.map +0 -7
- package/install-5XDTGLAU.js +0 -56
- package/install-5XDTGLAU.js.map +0 -7
- package/install-exec-VMPN3JE7.js +0 -28
- package/install-exec-VMPN3JE7.js.map +0 -7
- package/list-Q7IANZ3I.js +0 -129
- package/list-Q7IANZ3I.js.map +0 -7
- package/login-VHJEIRVU.js +0 -36
- package/login-VHJEIRVU.js.map +0 -7
- package/logout-5KMCSSR4.js +0 -36
- package/logout-5KMCSSR4.js.map +0 -7
- package/pkg-WYFDWETL.js +0 -364
- package/pkg-WYFDWETL.js.map +0 -7
- package/query-KP4F5D2Y.js +0 -117
- package/query-KP4F5D2Y.js.map +0 -7
- package/registry-client-package.json +0 -85
- package/reporter-LFGXWL6N.js +0 -18
- package/reporter-LFGXWL6N.js.map +0 -7
- package/rollback-remove-src-remove.js +0 -7398
- package/rollback-remove-src-remove.js.map +0 -7
- package/run-XNDZH72D.js +0 -68
- package/run-XNDZH72D.js.map +0 -7
- package/run-exec-NXA33NXJ.js +0 -41
- package/run-exec-NXA33NXJ.js.map +0 -7
- package/source-JWPG6PR3.js +0 -33
- package/source-JWPG6PR3.js.map +0 -7
- package/token-6IJNGEMI.js +0 -86
- package/token-6IJNGEMI.js.map +0 -7
- package/uninstall-MI7NFD27.js +0 -45
- package/uninstall-MI7NFD27.js.map +0 -7
- package/vlix.js +0 -25
- package/vlix.js.map +0 -7
- package/vlr.js +0 -25
- package/vlr.js.map +0 -7
- package/vlrx.js +0 -25
- package/vlrx.js.map +0 -7
- package/vlt.js +0 -24
- package/vlt.js.map +0 -7
- package/vlx.js +0 -25
- package/vlx.js.map +0 -7
- package/whoami-3IEXJF3U.js +0 -46
- package/whoami-3IEXJF3U.js.map +0 -7
- package/yoga.wasm +0 -0
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vlt",
|
|
3
3
|
"description": "The vlt CLI",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-4",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/vltpkg/vltpkg.git",
|
|
8
|
-
"directory": "infra/cli"
|
|
8
|
+
"directory": "infra/cli-compiled"
|
|
9
9
|
},
|
|
10
10
|
"license": "BSD-2-Clause-Patent",
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=22"
|
|
13
|
-
},
|
|
14
11
|
"type": "module",
|
|
15
12
|
"keywords": [
|
|
16
13
|
"vltpkg"
|
|
17
14
|
],
|
|
18
15
|
"bin": {
|
|
19
|
-
"vlix": "./vlix
|
|
20
|
-
"vlr": "./vlr
|
|
21
|
-
"vlrx": "./vlrx
|
|
22
|
-
"vlt": "./vlt
|
|
23
|
-
"vlx": "./vlx
|
|
16
|
+
"vlix": "./vlix",
|
|
17
|
+
"vlr": "./vlr",
|
|
18
|
+
"vlrx": "./vlrx",
|
|
19
|
+
"vlt": "./vlt",
|
|
20
|
+
"vlx": "./vlx"
|
|
21
|
+
},
|
|
22
|
+
"optionalDependencies": {
|
|
23
|
+
"@vltpkg/cli-linux-x64": "0.0.0-4",
|
|
24
|
+
"@vltpkg/cli-linux-arm64": "0.0.0-4",
|
|
25
|
+
"@vltpkg/cli-darwin-x64": "0.0.0-4",
|
|
26
|
+
"@vltpkg/cli-darwin-arm64": "0.0.0-4",
|
|
27
|
+
"@vltpkg/cli-win32-x64": "0.0.0-4"
|
|
28
|
+
},
|
|
29
|
+
"scripts": {
|
|
30
|
+
"postinstall": "node postinstall.cjs"
|
|
24
31
|
}
|
|
25
32
|
}
|
package/postinstall.cjs
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
|
|
3
|
+
const os = require('os')
|
|
4
|
+
const { join, dirname, basename } = require('path')
|
|
5
|
+
const fs = require('fs')
|
|
6
|
+
|
|
7
|
+
const execMode = 0o777 & ~process.umask()
|
|
8
|
+
const platform = os.platform()
|
|
9
|
+
const arch = os.arch()
|
|
10
|
+
const rootPackage = __dirname
|
|
11
|
+
const bins = Object.values(
|
|
12
|
+
require(join(rootPackage, 'package.json')).bin,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
const platformPkg = (() => {
|
|
16
|
+
try {
|
|
17
|
+
return dirname(
|
|
18
|
+
require.resolve(`@vltpkg/cli-${platform}-${arch}/package.json`),
|
|
19
|
+
)
|
|
20
|
+
} catch (e) {
|
|
21
|
+
throw new Error(
|
|
22
|
+
`Could not find platform package for ${platform}-${arch}`,
|
|
23
|
+
{
|
|
24
|
+
cause: e,
|
|
25
|
+
},
|
|
26
|
+
)
|
|
27
|
+
}
|
|
28
|
+
})()
|
|
29
|
+
|
|
30
|
+
const atomicCopySync = (source, target) => {
|
|
31
|
+
const tmp = join(dirname(target), `${basename(target)}.tmp`)
|
|
32
|
+
try {
|
|
33
|
+
fs.copyFileSync(source, tmp)
|
|
34
|
+
fs.renameSync(tmp, target)
|
|
35
|
+
fs.chmodSync(target, execMode)
|
|
36
|
+
} catch (err) {
|
|
37
|
+
try {
|
|
38
|
+
fs.unlinkSync(tmp)
|
|
39
|
+
} catch {}
|
|
40
|
+
throw new Error(`Could not copy platform bin`, {
|
|
41
|
+
cause: {
|
|
42
|
+
source,
|
|
43
|
+
target,
|
|
44
|
+
tmp,
|
|
45
|
+
err,
|
|
46
|
+
},
|
|
47
|
+
})
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
for (const binPath of bins) {
|
|
52
|
+
atomicCopySync(
|
|
53
|
+
join(platformPkg, binPath + `${os === 'win32' ? '.exe' : ''}`),
|
|
54
|
+
join(rootPackage, binPath),
|
|
55
|
+
)
|
|
56
|
+
}
|
package/vlix
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { readFileSync } from 'fs'
|
|
4
|
+
import { resolve } from 'path'
|
|
5
|
+
import os from 'os'
|
|
6
|
+
|
|
7
|
+
const validPlatforms = Object.keys(
|
|
8
|
+
JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf8'))
|
|
9
|
+
.optionalDependencies,
|
|
10
|
+
).map(name => name.replace('@vltpkg/cli-', ''))
|
|
11
|
+
|
|
12
|
+
const currentPlatform = `${os.platform()}-${os.arch()}`
|
|
13
|
+
|
|
14
|
+
console.error(
|
|
15
|
+
validPlatforms.includes(currentPlatform) ?
|
|
16
|
+
`This is a supported platform but the matching binary was not found.
|
|
17
|
+
This could be due to --no-optional or --ignore-scripts being used when installing.
|
|
18
|
+
Try again without either of those flags.
|
|
19
|
+
Otherwise check for error logs from the postinstall script.`
|
|
20
|
+
: `The current platform is not supported by this package.`,
|
|
21
|
+
)
|
|
22
|
+
console.error(`Valid platforms: ${JSON.stringify(validPlatforms)}`)
|
|
23
|
+
console.error(`Current platform: ${JSON.stringify(currentPlatform)}`)
|
|
24
|
+
|
|
25
|
+
process.exit(1)
|
package/vlr
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { readFileSync } from 'fs'
|
|
4
|
+
import { resolve } from 'path'
|
|
5
|
+
import os from 'os'
|
|
6
|
+
|
|
7
|
+
const validPlatforms = Object.keys(
|
|
8
|
+
JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf8'))
|
|
9
|
+
.optionalDependencies,
|
|
10
|
+
).map(name => name.replace('@vltpkg/cli-', ''))
|
|
11
|
+
|
|
12
|
+
const currentPlatform = `${os.platform()}-${os.arch()}`
|
|
13
|
+
|
|
14
|
+
console.error(
|
|
15
|
+
validPlatforms.includes(currentPlatform) ?
|
|
16
|
+
`This is a supported platform but the matching binary was not found.
|
|
17
|
+
This could be due to --no-optional or --ignore-scripts being used when installing.
|
|
18
|
+
Try again without either of those flags.
|
|
19
|
+
Otherwise check for error logs from the postinstall script.`
|
|
20
|
+
: `The current platform is not supported by this package.`,
|
|
21
|
+
)
|
|
22
|
+
console.error(`Valid platforms: ${JSON.stringify(validPlatforms)}`)
|
|
23
|
+
console.error(`Current platform: ${JSON.stringify(currentPlatform)}`)
|
|
24
|
+
|
|
25
|
+
process.exit(1)
|
package/vlrx
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { readFileSync } from 'fs'
|
|
4
|
+
import { resolve } from 'path'
|
|
5
|
+
import os from 'os'
|
|
6
|
+
|
|
7
|
+
const validPlatforms = Object.keys(
|
|
8
|
+
JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf8'))
|
|
9
|
+
.optionalDependencies,
|
|
10
|
+
).map(name => name.replace('@vltpkg/cli-', ''))
|
|
11
|
+
|
|
12
|
+
const currentPlatform = `${os.platform()}-${os.arch()}`
|
|
13
|
+
|
|
14
|
+
console.error(
|
|
15
|
+
validPlatforms.includes(currentPlatform) ?
|
|
16
|
+
`This is a supported platform but the matching binary was not found.
|
|
17
|
+
This could be due to --no-optional or --ignore-scripts being used when installing.
|
|
18
|
+
Try again without either of those flags.
|
|
19
|
+
Otherwise check for error logs from the postinstall script.`
|
|
20
|
+
: `The current platform is not supported by this package.`,
|
|
21
|
+
)
|
|
22
|
+
console.error(`Valid platforms: ${JSON.stringify(validPlatforms)}`)
|
|
23
|
+
console.error(`Current platform: ${JSON.stringify(currentPlatform)}`)
|
|
24
|
+
|
|
25
|
+
process.exit(1)
|
package/vlt
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { readFileSync } from 'fs'
|
|
4
|
+
import { resolve } from 'path'
|
|
5
|
+
import os from 'os'
|
|
6
|
+
|
|
7
|
+
const validPlatforms = Object.keys(
|
|
8
|
+
JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf8'))
|
|
9
|
+
.optionalDependencies,
|
|
10
|
+
).map(name => name.replace('@vltpkg/cli-', ''))
|
|
11
|
+
|
|
12
|
+
const currentPlatform = `${os.platform()}-${os.arch()}`
|
|
13
|
+
|
|
14
|
+
console.error(
|
|
15
|
+
validPlatforms.includes(currentPlatform) ?
|
|
16
|
+
`This is a supported platform but the matching binary was not found.
|
|
17
|
+
This could be due to --no-optional or --ignore-scripts being used when installing.
|
|
18
|
+
Try again without either of those flags.
|
|
19
|
+
Otherwise check for error logs from the postinstall script.`
|
|
20
|
+
: `The current platform is not supported by this package.`,
|
|
21
|
+
)
|
|
22
|
+
console.error(`Valid platforms: ${JSON.stringify(validPlatforms)}`)
|
|
23
|
+
console.error(`Current platform: ${JSON.stringify(currentPlatform)}`)
|
|
24
|
+
|
|
25
|
+
process.exit(1)
|
package/vlx
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { readFileSync } from 'fs'
|
|
4
|
+
import { resolve } from 'path'
|
|
5
|
+
import os from 'os'
|
|
6
|
+
|
|
7
|
+
const validPlatforms = Object.keys(
|
|
8
|
+
JSON.parse(readFileSync(resolve(__dirname, 'package.json'), 'utf8'))
|
|
9
|
+
.optionalDependencies,
|
|
10
|
+
).map(name => name.replace('@vltpkg/cli-', ''))
|
|
11
|
+
|
|
12
|
+
const currentPlatform = `${os.platform()}-${os.arch()}`
|
|
13
|
+
|
|
14
|
+
console.error(
|
|
15
|
+
validPlatforms.includes(currentPlatform) ?
|
|
16
|
+
`This is a supported platform but the matching binary was not found.
|
|
17
|
+
This could be due to --no-optional or --ignore-scripts being used when installing.
|
|
18
|
+
Try again without either of those flags.
|
|
19
|
+
Otherwise check for error logs from the postinstall script.`
|
|
20
|
+
: `The current platform is not supported by this package.`,
|
|
21
|
+
)
|
|
22
|
+
console.error(`Valid platforms: ${JSON.stringify(validPlatforms)}`)
|
|
23
|
+
console.error(`Current platform: ${JSON.stringify(currentPlatform)}`)
|
|
24
|
+
|
|
25
|
+
process.exit(1)
|