Skip to content

Commit

Permalink
fix: remove IManifest (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley authored and peternhale committed Feb 1, 2022
1 parent f95dfd2 commit b8e911e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
},
"bugs": "https://github.com/oclif/oclif/issues",
"dependencies": {
"@oclif/core": "^1.2.0",
"@oclif/core": "^1.3.0",
"@oclif/plugin-help": "^5.1.10",
"@oclif/plugin-not-found": "^2.2.4",
"@oclif/plugin-warn-if-update-available": "^2.0.4",
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
@@ -1,2 +1 @@
export {run} from '@oclif/core'
export {IManifest} from './tarballs'
4 changes: 2 additions & 2 deletions src/tarballs/build.ts
Expand Up @@ -6,7 +6,7 @@ import * as qq from 'qqjs'
import {log} from '../log'

import {writeBinScripts} from './bin'
import {BuildConfig, IManifest} from './config'
import {BuildConfig} from './config'
import {fetchNodeBinary} from './node'
import {commitAWSDir, templateShortKey} from '../upload-util'

Expand Down Expand Up @@ -123,7 +123,7 @@ export async function build(c: BuildConfig, options: {
const gzCloudKey = `${commitAWSDir(config.version, c.gitSha, c.updateConfig.s3)}/${gzLocalKey}`
const xzCloudKey = `${commitAWSDir(config.version, c.gitSha, c.updateConfig.s3)}/${xzLocalKey}`

const manifest: IManifest = {
const manifest: Interfaces.S3Manifest = {
rollout: rollout === false ? undefined : rollout,
version: config.version,
sha: c.gitSha,
Expand Down
15 changes: 0 additions & 15 deletions src/tarballs/config.ts
Expand Up @@ -30,21 +30,6 @@ export interface BuildConfig {
dist(input: string): string;
}

export interface IManifest {
version: string;
sha: string;
gz: string;
xz?: string;
sha256gz: string;
sha256xz?: string;
baseDir: string;
rollout?: number;
node: {
compatible: string;
recommended: string;
};
}

export async function gitSha(cwd: string, options: {short?: boolean} = {}): Promise<string> {
const args = options.short ? ['rev-parse', '--short', 'HEAD'] : ['rev-parse', 'HEAD']
return qq.x.stdout('git', args, {cwd})
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -552,10 +552,10 @@
widest-line "^3.1.0"
wrap-ansi "^7.0.0"

"@oclif/core@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-1.2.0.tgz#f1110b1fe868e439f94f8b4ffad5dd8acf862294"
integrity sha512-h1n8NEAUzaL3+wky7W1FMeySmJWQpYX1LhWMltFY/ScvmapZzee7D9kzy/XI/ZIWWfz2ZYCTMD1wOKXO6ueynw==
"@oclif/core@^1.3.0":
version "1.3.0"
resolved "https://registry.npmjs.org/@oclif/core/-/core-1.3.0.tgz#f0547d2ca9b13c2a54f1c1d88e03a8c8ca7799bb"
integrity sha512-YSy1N3SpOn/8vmY8lllmTzQ4+KGjTlyFoNr/PxvebuYxo0iO0uQSpXIr8qDoNGQUTy+3Z5feUxoV04uUgAlI6Q==
dependencies:
"@oclif/linewrap" "^1.0.0"
"@oclif/screen" "^3.0.2"
Expand Down

0 comments on commit b8e911e

Please sign in to comment.