Skip to content

Commit

Permalink
add support for Stage3/2022.3 decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
Matchlighter committed Feb 28, 2023
1 parent faf075c commit 5ce0269
Show file tree
Hide file tree
Showing 23 changed files with 1,581 additions and 58 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-cooks-nail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"mobx": minor
---

Add 2022.3 Decorators support
8 changes: 5 additions & 3 deletions jest.base.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const fs = require("fs")
const path = require("path")

const tsConfig = "tsconfig.test.json"

module.exports = function buildConfig(packageDirectory, pkgConfig) {
module.exports = function buildConfig(
packageDirectory,
pkgConfig,
tsConfig = "tsconfig.test.json"
) {
const packageName = require(`${packageDirectory}/package.json`).name
const packageTsconfig = path.resolve(packageDirectory, tsConfig)
return {
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const buildConfig = require("./jest.base.config")

module.exports = buildConfig(__dirname, {
projects: ["<rootDir>/packages/*/jest.config.js"]
projects: ["<rootDir>/packages/*/jest.config.js", "<rootDir>/packages/*/jest.config-*.js"]
// collectCoverageFrom: ["<rootDir>/packages/*/src/**/*.{ts,tsx}"]
})
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"packages/*"
],
"resolutions": {
"typescript": "^4.0.2",
"typescript": "^5.0.0-beta",
"recast": "^0.23.1"
},
"repository": {
Expand Down Expand Up @@ -57,7 +57,7 @@
"lodash": "^4.17.4",
"minimist": "^1.2.5",
"mkdirp": "1.0.4",
"prettier": "^2.0.5",
"prettier": "^2.8.4",
"pretty-quick": "3.1.0",
"prop-types": "15.6.2",
"react": "^18.0.0",
Expand All @@ -67,7 +67,7 @@
"tape": "^5.0.1",
"ts-jest": "26.4.1",
"tsdx": "^0.14.1",
"typescript": "^4.0.2"
"typescript": "^5.0.0-beta"
},
"husky": {
"hooks": {
Expand Down
Loading

0 comments on commit 5ce0269

Please sign in to comment.