Skip to content

Commit

Permalink
feat: upgrade @Kit and add a DOMProxy debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Sep 23, 2019
1 parent 1cc982a commit 680a2fc
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
18 changes: 17 additions & 1 deletion scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,21 @@ process.chdir(base)
if (process.argv.indexOf('--upgrade') !== -1) await spawn('yarn', ['upgrade', '@holoflows/kit'])
process.chdir('node_modules/@holoflows/kit')
await spawn('yarn', ['install'])
await spawn('yarn', ['build:tsc'])
try {
/**
* For unknown reason, first time build will raise an exception. But if we build it twice, problem will be fixed
*
* src/Extension/AutomatedTabTask.ts:119:17 -
* error TS2742: The inferred type of 'AutomatedTabTask' cannot be named
* without a reference to '@holoflows/kit/node_modules/csstype'.
* This is likely not portable.
* A type annotation is necessary.
* 119 export function AutomatedTabTask<T extends Record<string, (...args: any[]) => PromiseLike<any>>>(
* ~~~~~~~~~~~~~~~~
*/
await spawn('yarn', ['build:tsc'])
} catch (e) {
console.log('Build failed, retry one more time.')
await spawn('yarn', ['build:tsc'])
}
})()
3 changes: 2 additions & 1 deletion src/setup.ui.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { MessageCenter } from './utils/messages'
import { definedSocialNetworkUIs, activateSocialNetworkUI } from './social-network/ui'
import './provider.ui'
import { LiveSelector, Watcher } from '@holoflows/kit/es'
import { LiveSelector, Watcher, DOMProxy } from '@holoflows/kit/es'

LiveSelector.enhanceDebugger()
Watcher.enhanceDebugger()
DOMProxy.enhanceDebugger()
Object.assign(globalThis, {
definedSocialNetworkUIs: definedSocialNetworkUIs,
})
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@

"@holoflows/kit@https://github.com/DimensionDev/holoflows-kit":
version "0.5.0"
resolved "https://github.com/DimensionDev/holoflows-kit#81efcc09b7fb838ce07c97e0a45061a0738394ff"
resolved "https://github.com/DimensionDev/holoflows-kit#2cca36cfc03cb705c58931ebf1d308547ac584c1"
dependencies:
"@types/lodash-es" "^4.1.4"
async-call-rpc "^1.0.0"
Expand Down

0 comments on commit 680a2fc

Please sign in to comment.