Skip to content

Commit

Permalink
fix: fixes postinstall bug (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
martines3000 authored Jul 25, 2023
1 parent 8ff10cd commit bf00dbf
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 4 deletions.
2 changes: 1 addition & 1 deletion external/js-sdk
Submodule js-sdk updated 1 files
+1 −1 package.json
2 changes: 1 addition & 1 deletion packages/connector/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function enableMasca(
): Promise<Result<Masca>> {
const {
snapId = defaultSnapOrigin,
version = '0.4.0',
version = '0.4.1',
supportedMethods = ['did:ethr'],
} = snapInstallationParams;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const CheckMetaMaskCompatibility = () => {
const enableMascaHandler = async () => {
const enableResult = await enableMasca(address, {
snapId,
version: '0.4.0',
version: '0.4.1',
});
if (isError(enableResult)) {
// FIXME: This error is shown as [Object object]
Expand Down
39 changes: 38 additions & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"build": "pnpm clean && pnpm typia:generate && pnpm compile",
"clean": "rimraf dist",
"compile": "tsup",
"postinstall": "pnpm typia:generate",
"lint": "pnpm lint:eslint && pnpm lint:prettier",
"lint:eslint": "eslint .",
"lint:fix": "eslint . --fix && prettier . --write",
Expand Down Expand Up @@ -59,5 +58,43 @@
},
"publishConfig": {
"access": "public"
},
"nx": {
"namedInputs": {
"default": [
"{projectRoot}/**/*"
],
"production": [
"default",
"!{projectRoot}/dist/**/*",
"!{projectRoot}/.lintstagedrc.cjs",
"!{projectRoot}/.prettierignore"
]
},
"targets": {
"build": {
"inputs": [
"production",
"^production"
],
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/dist",
"{projectRoot}/src/typia-generated"
]
},
"lint": {
"inputs": [
"default",
"^production"
],
"dependsOn": [
"build"
],
"outputs": []
}
}
}
}

0 comments on commit bf00dbf

Please sign in to comment.