Skip to content

Commit

Permalink
feat: upgrade @kit to enable Watcher debugger
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Works committed Sep 23, 2019
1 parent ec71ae4 commit 1cc982a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
3 changes: 3 additions & 0 deletions config-overrides/index.js
Expand Up @@ -191,6 +191,9 @@ function override(config, env) {
polyfills.map(x => void fs.copyFileSync(x, path.join(publicPolyfill, path.basename(x))))
}

const tsCheckerPlugin = config.plugins.filter(x => x.constructor.name === 'ForkTsCheckerWebpackPlugin')[0]
tsCheckerPlugin.compilerOptions.isolatedModules = false

// Let webpack build to es2017 instead of es5
config.module.rules = [
// from cra
Expand Down
2 changes: 1 addition & 1 deletion scripts/postinstall.js
Expand Up @@ -7,5 +7,5 @@ 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'])
await spawn('yarn', ['build:tsc'])
})()
4 changes: 2 additions & 2 deletions src/setup.ui.ts
@@ -1,10 +1,10 @@
import { MessageCenter } from './utils/messages'
import { definedSocialNetworkUIs, activateSocialNetworkUI } from './social-network/ui'
import './provider.ui'
import { LiveSelector } from '@holoflows/kit/es'
import { LiveSelector, Watcher } from '@holoflows/kit/es'

LiveSelector.enhanceDebugger()

Watcher.enhanceDebugger()
Object.assign(globalThis, {
definedSocialNetworkUIs: definedSocialNetworkUIs,
})
Expand Down
12 changes: 9 additions & 3 deletions yarn.lock
Expand Up @@ -1276,11 +1276,12 @@

"@holoflows/kit@https://github.com/DimensionDev/holoflows-kit":
version "0.5.0"
resolved "https://github.com/DimensionDev/holoflows-kit#49311a763b8c9038772a134057db15098225e295"
resolved "https://github.com/DimensionDev/holoflows-kit#81efcc09b7fb838ce07c97e0a45061a0738394ff"
dependencies:
"@types/lodash-es" "^4.1.4"
async-call-rpc "^1.0.0"
concurrent-lock "^1.0.7"
jsx-jsonml-devtools-renderer "^1.1.0"
jsx-jsonml-devtools-renderer "^1.3.0"
lodash-es "^4.17.15"
memorize-decorator "^0.2.2"
mitt "^1.1.3"
Expand Down Expand Up @@ -3327,6 +3328,11 @@ astral-regex@^1.0.0:
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9"
integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==

async-call-rpc@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/async-call-rpc/-/async-call-rpc-1.0.0.tgz#a2dd6a192b353b717fdf0881da9c805c58e3cb44"
integrity sha512-J2bj2HfUPKJCf7i/Lgxjj51+L0xg5xzENK1zkH3xZhsg2PFj2rxwwIRhqSKvGW6z3d6ukjcQWHg/0UbtsuFD2g==

async-each@^1.0.1:
version "1.0.3"
resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.3.tgz#b727dbf87d7651602f06f4d4ac387f47d91b0cbf"
Expand Down Expand Up @@ -9956,7 +9962,7 @@ jsx-ast-utils@^2.1.0, jsx-ast-utils@^2.2.1:
array-includes "^3.0.3"
object.assign "^4.1.0"

jsx-jsonml-devtools-renderer@^1.1.0:
jsx-jsonml-devtools-renderer@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/jsx-jsonml-devtools-renderer/-/jsx-jsonml-devtools-renderer-1.3.0.tgz#1af53802a49898db3bd2f9070a5f6e56d8c2ef13"
integrity sha512-DjsZ+XvwkInWB5Cr3xfibfE5+PmIibGk/MCLR5QBRttgUWX0Uzr0g+IpPi4Rb0U0U9D+BkhbvrE9gSSm08M8Nw==
Expand Down

0 comments on commit 1cc982a

Please sign in to comment.