Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .yarn/plugins/plugin-disable-typescript-compat.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/* eslint-disable */
//prettier-ignore
module.exports = {
name: `plugin-disable-typescript-compat`,
factory: function (require) {
const { structUtils } = require(`@yarnpkg/core`);
return {
hooks: {
// Yarn's builtin `compat/typescript` patch rewrites the `typescript`
// dependency to patch lib/_tsc.js, lib/tsserver.js, lib/typescript.js.
// The TypeScript 7 native compiler ships only lib/tsc.js + bin/tsc, so
// that builtin patch fails with ENOENT. This hook runs after the compat
// plugin and unwraps the builtin patch back to the plain npm descriptor.
reduceDependency: function (dependency) {
if (
dependency.name === `typescript` &&
dependency.range.startsWith(`patch:`) &&
dependency.range.includes(`builtin<compat/typescript>`)
) {
const source = decodeURIComponent(
structUtils.parseRange(dependency.range).source
);
const original = structUtils.parseDescriptor(source, true);
return structUtils.makeDescriptor(dependency, original.range);
}
return dependency;
},
},
};
},
};
4 changes: 4 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ packageExtensions:
dependencies:
supports-color: "*"

plugins:
- path: .yarn/plugins/plugin-disable-typescript-compat.cjs
spec: "plugin-disable-typescript-compat"

pnpMode: loose

compressionLevel: mixed
Expand Down
13 changes: 6 additions & 7 deletions Library/Lending/.frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,24 @@
"extends": "../../../.frontend/tsconfig.base.json",
"compilerOptions": {
"allowImportingTsExtensions": true,
"baseUrl": "..",
"paths": {
"Components/*": [
"Components/*"
"../Components/*"
],
"Components": [
"Components/index"
"../Components/index"
],
"Layout/*": [
"Layout/*"
"../Layout/*"
],
"Authors/*": [
"Authors/*"
"../Authors/*"
],
"Inventory/*": [
"Inventory/*"
"../Inventory/*"
],
"Lending/*": [
"Lending/*"
"../Lending/*"
]
}
},
Expand Down
3 changes: 1 addition & 2 deletions Library/Members/.frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"extends": "../../../.frontend/tsconfig.base.json",
"compilerOptions": {
"allowImportingTsExtensions": true,
"baseUrl": "..",
"paths": {
"Profiles/*": [
"Profiles/*"
"../Profiles/*"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"sinon-chai": "4.0.1",
"tailwindcss": "4.3.1",
"ts-node": "10.9.2",
"typescript": "6.0.3",
"typescript": "7.0.2",
"typescript-eslint": "8.62.0",
"vite": "8.1.0",
"vite-plugin-commonjs": "0.10.4",
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"compilerOptions": {
"baseUrl": ".",
"outDir": "dist/esm",
"declaration": true,
"declarationMap": true,
Expand Down
Loading