Skip to content

Commit

Permalink
🩹 fix(none): fix @roots/bud-client import error
Browse files Browse the repository at this point in the history
  • Loading branch information
kellymears committed Jul 3, 2024
1 parent 1d9c48a commit 3da9f7f
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 26 deletions.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,6 @@
"typescript.enablePromptUseWorkspaceTsdk": true,
"typescript.format.semicolons": "remove",
"typescript.preferences.preferTypeOnlyAutoImports": true,
"typescript.preferences.quoteStyle": "single"
"typescript.preferences.quoteStyle": "single",
"typescript.tsdk": "node_modules/typescript/lib"
}
8 changes: 7 additions & 1 deletion examples/babel/jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"extends": ["@roots/bud/config/jsconfig.json"],
"compilerOptions": {
"paths": {
"@src": ["./src"]
},
"types": ["@roots/bud", "@roots/bud-babel"]
}
},
"include": ["./src"],
"exclude": ["./node_modules", "./dist"]
}
6 changes: 5 additions & 1 deletion examples/babel/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import '@src/app.css'

document.querySelector('#root')?.classList.add('init')

if (import.meta.webpackHot) import.meta.webpackHot.accept(console.error)
if (import.meta.webpackHot) {
import.meta.webpackHot.accept(console.error)
}

export {}
2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"ts-node": "10.9.2"
},
"dependencies": {
"typescript": "5.4.5"
"typescript": "5.5.3"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"syncpack": "12.3.3",
"ts-node": "10.9.2",
"tslib": "2.6.3",
"typescript": "5.4.5",
"typescript": "5.5.3",
"update-browserslist-db": "1.0.16",
"verdaccio": "5.31.1",
"vitest": "1.6.0",
Expand Down
2 changes: 1 addition & 1 deletion sources/@repo/markdown-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"prettier": "3.3.2",
"strip-ansi": "7.1.0",
"tslib": "2.6.3",
"typescript": "5.4.5"
"typescript": "5.5.3"
},
"scripts": {
"build": "yarn tsc -b"
Expand Down
2 changes: 1 addition & 1 deletion sources/@repo/yarn-plugin-bud/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"@types/node": "20.14.9",
"@types/semver": "7.5.8",
"@yarnpkg/builder": "patch:@yarnpkg/builder@npm%3A4.0.0#~/.yarn/patches/@yarnpkg-builder-npm-4.0.0-1be968e10e.patch",
"typescript": "5.4.5"
"typescript": "5.5.3"
},
"dependencies": {
"@repo/constants": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion sources/@repo/yarn-plugin-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"helpful-decorators": "2.1.0",
"lodash-es": "4.17.21",
"tslib": "2.6.3",
"typescript": "5.4.5",
"typescript": "5.5.3",
"vitest": "1.6.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"tslib": "2.6.3",
"typescript": "5.4.5"
"typescript": "5.5.3"
},
"volta": {
"extends": "../../../package.json"
Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-wordpress-dependencies/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ declare module '@roots/bud-framework' {
}
}

export default BudWordPressDependencies
export {default} from './extension.js'
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {describe, expect, it} from 'vitest'

import Extension from './index.js'
import Extension from '../src/index.js'

describe(`@roots/bud-wordpress-dependencies`, () => {
it(`should be constructable`, () => {
Expand Down
3 changes: 2 additions & 1 deletion sources/@roots/sage/src/client/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from '@roots/bud-client'
export {default as domReady} from '@roots/bud-client/dom-ready'
export {default as lazy} from '@roots/bud-client/lazy'
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9123,7 +9123,7 @@ __metadata:
"@roots/bud-typescript": "workspace:*"
"@types/node": "npm:20.14.9"
ts-node: "npm:10.9.2"
typescript: "npm:5.4.5"
typescript: "npm:5.5.3"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -11303,7 +11303,7 @@ __metadata:
prettier: "npm:3.3.2"
strip-ansi: "npm:7.1.0"
tslib: "npm:2.6.3"
typescript: "npm:5.4.5"
typescript: "npm:5.5.3"
vitest: "npm:1.6.0"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -11358,7 +11358,7 @@ __metadata:
lodash: "npm:4.17.21"
semver: "npm:7.6.2"
tslib: "npm:2.6.3"
typescript: "npm:5.4.5"
typescript: "npm:5.5.3"
languageName: unknown
linkType: soft

Expand All @@ -11377,7 +11377,7 @@ __metadata:
helpful-decorators: "npm:2.1.0"
lodash-es: "npm:4.17.21"
tslib: "npm:2.6.3"
typescript: "npm:5.4.5"
typescript: "npm:5.5.3"
vitest: "npm:1.6.0"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -12157,7 +12157,7 @@ __metadata:
ts-loader: "npm:9.5.1"
ts-node: "npm:10.9.2"
tslib: "npm:2.6.3"
typescript: "npm:5.4.5"
typescript: "npm:5.5.3"
webpack: "npm:5.92.1"
languageName: unknown
linkType: soft
Expand Down Expand Up @@ -20493,7 +20493,7 @@ __metadata:
syncpack: "npm:12.3.3"
ts-node: "npm:10.9.2"
tslib: "npm:2.6.3"
typescript: "npm:5.4.5"
typescript: "npm:5.5.3"
update-browserslist-db: "npm:1.0.16"
verdaccio: "npm:5.31.1"
vitest: "npm:1.6.0"
Expand Down Expand Up @@ -42451,13 +42451,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@npm:5.4.5":
version: 5.4.5
resolution: "typescript@npm:5.4.5"
"typescript@npm:5.5.3":
version: 5.5.3
resolution: "typescript@npm:5.5.3"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/2954022ada340fd3d6a9e2b8e534f65d57c92d5f3989a263754a78aba549f7e6529acc1921913560a4b816c46dce7df4a4d29f9f11a3dc0d4213bb76d043251e
checksum: 10c0/f52c71ccbc7080b034b9d3b72051d563601a4815bf3e39ded188e6ce60813f75dbedf11ad15dd4d32a12996a9ed8c7155b46c93a9b9c9bad1049766fe614bbdd
languageName: node
linkType: hard

Expand All @@ -42471,13 +42471,13 @@ __metadata:
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A5.4.5#optional!builtin<compat/typescript>":
version: 5.4.5
resolution: "typescript@patch:typescript@npm%3A5.4.5#optional!builtin<compat/typescript>::version=5.4.5&hash=5adc0c"
"typescript@patch:typescript@npm%3A5.5.3#optional!builtin<compat/typescript>":
version: 5.5.3
resolution: "typescript@patch:typescript@npm%3A5.5.3#optional!builtin<compat/typescript>::version=5.5.3&hash=379a07"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10c0/db2ad2a16ca829f50427eeb1da155e7a45e598eec7b086d8b4e8ba44e5a235f758e606d681c66992230d3fc3b8995865e5fd0b22a2c95486d0b3200f83072ec9
checksum: 10c0/911c7811d61f57f07df79c4a35f56a0f426a65426a020e5fcd792f66559f399017205f5f10255329ab5a3d8c2d1f1d19530aeceffda70758a521fae1d469432e
languageName: node
linkType: hard

Expand Down

0 comments on commit 3da9f7f

Please sign in to comment.