Skip to content

Commit

Permalink
Resurrect test:types in realm package
Browse files Browse the repository at this point in the history
  • Loading branch information
liamjones committed Dec 6, 2024
1 parent 05deac9 commit b0be346
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
8 changes: 7 additions & 1 deletion packages/realm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
],
"scripts": {
"test": "wireit",
"test:types": "tsc --project type-tests/tsconfig.json",
"test:types": "wireit",
"lint": "eslint --ext .js,.mjs,.ts .",
"prebuild": "tsx ./src/scripts/build/cli.ts",
"prebuild-apple": "wireit",
Expand Down Expand Up @@ -102,6 +102,12 @@
"TSX_TSCONFIG_PATH": "tsconfig.tests.json"
}
},
"test:types": {
"command": "tsc --project type-tests/tsconfig.json",
"dependencies": [
"build:ts"
]
},
"prebuild-apple": {
"command": "tsx ./src/scripts/build/cli.ts build-apple",
"files": [
Expand Down
19 changes: 6 additions & 13 deletions packages/realm/type-tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
{
"extends": "../tsconfig.json",
"extends": "../tsconfig.public-types-check.json",
"compilerOptions": {
"noEmit": true,
"noResolve": true,
"esModuleInterop": true,
"lib": [
"ES2022",
],
"baseUrl": ".",
"paths": {
"realm": ["../../.."],
"next-realm": [".."],
"realm": [
"../dist/public-types"
]
}
},
"exclude": [],
"include": [
"../src/**/*.ts",
"type-tests.ts"
"*.ts"
]
}
}
2 changes: 1 addition & 1 deletion packages/realm/type-tests/type-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

/* eslint-disable @typescript-eslint/no-unused-vars -- We're just testing types */

import { Realm as Realm2 } from "../src/index";
import { Realm as Realm2 } from "realm";

const realm = new Realm();
const realm2: Realm = new Realm();
Expand Down

0 comments on commit b0be346

Please sign in to comment.