Skip to content

Conversation

zhouhanseng
Copy link
Contributor

Fix: Cannot find module '../cli/utils' or its corresponding type declarations.ts(2307)

@zhouhanseng zhouhanseng force-pushed the hancheng/fix-contract-package branch from 6b12b2e to bc23a85 Compare July 29, 2021 09:21
@@ -12,8 +13,11 @@ function run(webpack: TaskFunction, cb: TaskFunctionCallback) {
return shell.cwd(cwd)`${cmd}`
}

export const codegenGuardWatch = series(codegen, parallel(codegenWatch, run.bind(null, extensionWatch)))
export const codegenGuard = series(codegen, run.bind(null, extension))
export const codegenGuardWatch: Undertaker.TaskFunction = series(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inferred type of 'codegenGuardWatch' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@types/undertaker'. This is likely not portable. A type annotation is necessary.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd prefer to revert this change because this package will not be type-checked.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay


// add to git stage
run(ABIS_PATH, 'git', 'add', '.')
run(GENERATED_PATH, 'git', 'add', '.')
shell`${ABIS_PATH}, 'git', 'add', '.'`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

safe?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

plz revert this modify.

Copy link
Contributor Author

@zhouhanseng zhouhanseng Jul 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jack-Works Why remove run() in e523a09 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhouhanseng you should copy run from e523a09 into this folder. The content in @masknet/cli is not designed to be compiled or exported.

@Jack-Works
Copy link
Member

@zhouhanseng please revert the irrelated change, just copy run into the contract compiler. @masknet/cli must not be a dependency of another package.

@zhouhanseng zhouhanseng force-pushed the hancheng/fix-contract-package branch from c149703 to 7a03829 Compare July 30, 2021 03:09
@zhouhanseng zhouhanseng requested review from Jack-Works and septs July 30, 2021 04:17
@Jack-Works Jack-Works merged commit 9e3a798 into develop Jul 30, 2021
@Jack-Works Jack-Works deleted the hancheng/fix-contract-package branch July 30, 2021 10:56
yanzhihong23 added a commit that referenced this pull request Aug 4, 2021
* develop: (93 commits)
  chore: add no-var rule (#3846)
  feat: the Risk Warning Dialog (#3833)
  fix(twitter): tweet selector fails to get link-only tweet content (#3837)
  chore: cleanup try-catch (#3840)
  chore: simplify urlcat builder (#3843)
  fix: parseint radix unset (#3844)
  chore: improve eslint (#3835)
  feat: introduce arbitrum network (#3558)
  fix: show nan in dashboard asset list (#3828)
  chore: simplify typing (#3825)
  refactor: revamp redpacket (#3809)
  feat: enable new dashboard in beat (#3826)
  fix: eslint (#3823)
  Update flags.ts (#3824)
  refactor: add v2_enabled flag (#3820)
  RFC: new payload v-37 and TypedMessage binary format (#2623)
  fix: bridge is down (#3821)
  feat: set experimentalMark on 3 plugins (#3669)
  fix: snapshot break down (#3814)
  refactor: compile contracts cli (#3798)
  ...
guanbinrui pushed a commit that referenced this pull request Aug 6, 2021
* refactor: compile contracts cli

* chore: remove unused packages

* chore: reply code review

* chore: reply code review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants