Skip to content

Commit

Permalink
chore: repo overall update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 2, 2024
1 parent c8994ef commit 30df4ee
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugins/babel-plugin-canyon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-canyon",
"version": "2.0.0-beta.6",
"version": "2.0.0-beta.7",
"description": "",
"scripts": {
"release": "babel src --extensions \".ts\" --out-dir lib",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function _getSlug(inputs: UploaderInputs): string {
// // parseSlugFromRemoteAddr(remoteAddr) ||
// // ''
// )
return envs.CI_PROJECT_ID
return args.projectID || envs.CI_PROJECT_ID
}

export function getServiceParams(inputs: UploaderInputs): IServiceParams {
Expand Down
6 changes: 3 additions & 3 deletions plugins/babel-plugin-canyon/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export default declare((api, config) => {
envs: process.env,
// @ts-ignore
args: {
// projectID: config.projectID,
// sha: config.sha,
projectID: config.projectID,
sha: config.sha,
// instrumentCwd: config.instrumentCwd,
// branch: config.branch,
branch: config.branch,
}
})
// console.log(serviceParams,'serviceParams')
Expand Down
1 change: 1 addition & 0 deletions plugins/babel-plugin-canyon/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export interface UploaderArgs {
verbose?: string // Run with verbose logging
xcode?: string // Run with xcode support
xcodeArchivePath?: string // Specify the xcode archive path. Likely specified as the -resultBundlePath and should end in .xcresult
projectID?: string // Specify the project ID manually
}

export type UploaderEnvs = NodeJS.Dict<string>
Expand Down

0 comments on commit 30df4ee

Please sign in to comment.