Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-kinokon committed Nov 14, 2023
1 parent 0a8b6b8 commit 09bf318
Show file tree
Hide file tree
Showing 5 changed files with 1,701 additions and 1,211 deletions.
80 changes: 40 additions & 40 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,60 +28,60 @@
"@babel/types": "^7.21.0"
},
"devDependencies": {
"@babel/core": "^7.21.8",
"@babel/plugin-transform-typescript": "^7.21.3",
"@babel/preset-env": "^7.21.5",
"@babel/preset-react": "^7.18.6",
"@babel/types": "^7.21.5",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.0.2",
"@rollup/plugin-replace": "^5.0.2",
"@types/babel-plugin-macros": "^3.1.0",
"@types/babel__core": "^7.20.0",
"@types/chai": "^4.3.5",
"@types/chai-string": "^1.4.2",
"@types/clean-css": "^4.2.6",
"@types/dedent": "^0.7.0",
"@types/fs-extra": "^11.0.1",
"@types/jsdom": "^21.1.1",
"@types/lodash": "^4.14.194",
"@babel/core": "^7.23.3",
"@babel/plugin-transform-typescript": "^7.23.3",
"@babel/preset-env": "^7.23.3",
"@babel/preset-react": "^7.23.3",
"@babel/types": "^7.23.3",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@types/babel-plugin-macros": "^3.1.3",
"@types/babel__core": "^7.20.4",
"@types/chai": "^4.3.10",
"@types/chai-string": "^1.4.5",
"@types/clean-css": "^4.2.10",
"@types/dedent": "^0.7.2",
"@types/fs-extra": "^11.0.4",
"@types/jsdom": "^21.1.5",
"@types/lodash": "^4.14.201",
"@types/mocha": "github:whitecolor/mocha-types#da22474cf43f48a56c86f8c23a5a0ea36e295768",
"@types/node": "^20.2.3",
"@types/prettier": "^2.7.2",
"@types/prop-types": "^15.7.5",
"@types/sinon": "^10.0.15",
"@typescript-eslint/eslint-plugin": "5.59.6",
"@typescript-eslint/parser": "5.59.6",
"@types/node": "^20.9.0",
"@types/prettier": "^2.7.3",
"@types/prop-types": "^15.7.10",
"@types/sinon": "^17.0.1",
"@typescript-eslint/eslint-plugin": "6.11.0",
"@typescript-eslint/parser": "6.11.0",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-minify-constant-folding": "^0.5.0",
"babel-plugin-minify-dead-code-elimination": "^0.5.2",
"babel-plugin-minify-guarded-expressions": "^0.4.4",
"chai": "^4.3.7",
"chai": "^4.3.10",
"chai-string": "^1.5.0",
"clean-css": "^5.3.2",
"dedent": "^0.7.0",
"esbuild": "^0.17.19",
"esbuild-register": "^3.4.2",
"eslint": "8.41.0",
"eslint-config-prettier": "8.8.0",
"eslint-import-resolver-typescript": "3.5.5",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-react": "7.32.2",
"dedent": "^1.5.1",
"esbuild": "^0.19.5",
"esbuild-register": "^3.5.0",
"eslint": "8.53.0",
"eslint-config-prettier": "9.0.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-react": "7.33.2",
"eslint-plugin-react-hooks": "4.6.0",
"fs-extra": "^11.1.1",
"husky": "8.0.3",
"jsdom": "^22.0.0",
"lint-staged": "^13.2.2",
"jsdom": "^22.1.0",
"lint-staged": "^15.1.0",
"lodash": "^4.17.21",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"prettier": "^2.8.8",
"rollup": "^3.23.0",
"rollup-plugin-prettier": "^3.0.0",
"sinon": "^15.1.0",
"prettier": "^3.1.0",
"rollup": "^4.4.0",
"rollup-plugin-prettier": "^4.1.1",
"sinon": "^17.0.1",
"ts-node": "^10.9.1",
"tslib": "^2.5.2",
"typescript": "^5.0.4"
"tslib": "^2.6.2",
"typescript": "^5.2.2"
},
"lint-staged": {
"*.ts": [
Expand Down
2 changes: 1 addition & 1 deletion scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export async function build({ targetDir, format, packageName }: BuildOptions) {
const content = `export ${imports} from "${src}"`

await fs.mkdirp(dest)
await fs.writeFile(resolve(dest, name), formatSource(content))
await fs.writeFile(resolve(dest, name), await formatSource(content))
}

// https://github.com/jprichardson/node-fs-extra/issues/323
Expand Down
4 changes: 2 additions & 2 deletions test/test-automatic-runtime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("Automatic Runtime", () => {

async function generateBundle(code: string, babelOptions?: Record<string, any>) {
const entryPath = resolve(TEMP_FOLDER, "index.js")
await writeFile(entryPath, formatCode(code))
await writeFile(entryPath, await formatCode(code))
const build = await rollup({
input: entryPath,
external: path => path.startsWith("jsx-dom"),
Expand All @@ -37,7 +37,7 @@ describe("Automatic Runtime", () => {
})
const { output } = await build.generate({})
expect(output).to.have.lengthOf(1)
return formatCode(output[0].code)
return await formatCode(output[0].code)
}

generateBundle.options = (options: Record<string, any>) => (code: string) =>
Expand Down
5 changes: 5 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ export function createElement<T extends Element>(
...children: ReactNode[]
): T

// Locally scoped JSX types
export namespace createElement {
export { JSX }
}

// DOM Elements
export function jsx<K extends HTMLElementTagNames, T extends HTMLElementTagNameMap[K]>(
type: K,
Expand Down
Loading

0 comments on commit 09bf318

Please sign in to comment.