Skip to content

Commit dc851bd

Browse files
authored
fix: get deploy path and package-lock in release (#221)
1 parent d605d5a commit dc851bd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"dist",
1717
"account",
1818
"ckb",
19+
"package-lock.json",
1920
"templates/v3/offckb.config.example.ts"
2021
],
2122
"private": false,

src/deploy/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ export function getToDeployBinsPath(userOffCKBConfigPath: string) {
1919
const match = fileContent.match(/contractBinFolder:\s*['"]([^'"]+)['"]/);
2020
if (match && match[1]) {
2121
const contractBinFolderValue = match[1];
22+
const folderPath = path.dirname(userOffCKBConfigPath);
2223
const binFileOrFolderPath = isAbsolutePath(contractBinFolderValue)
2324
? contractBinFolderValue
24-
: path.resolve(userOffCKBConfigPath, contractBinFolderValue);
25+
: path.resolve(folderPath, contractBinFolderValue);
2526

2627
const bins = getBinaryFilesFromPath(binFileOrFolderPath);
2728
return bins;

0 commit comments

Comments
 (0)