Compare commits

...

2 commits

Author SHA1 Message Date
DidaS
9e71877d91
Add paths tag for questions regarding tsconfig paths not working (#38)
Maybe there is more information that could be added?

I just pasted this from the "paths are not magic" tag in the typescript
server
2024-09-23 17:14:46 +02:00
7268a7287a
build: update deps 2024-09-23 16:35:30 +02:00
3 changed files with 18 additions and 6 deletions

BIN
bun.lockb

Binary file not shown.

12
data/tags/paths.md Normal file
View file

@ -0,0 +1,12 @@
---
question: How to use tsconfig paths?
keywords:
- "paths"
- "baseUrl"
- "magic"
---
The `paths` and `baseUrl` compiler options don't cause any remapping of imports paths, they only inform TS of existing mappings, which you'll have to setup with some other tool.
`baseUrl` is a pretty well-supported option (e.g. using the `NODE_PATH` environment variable with node or `resolve.modules` with webpack).
`paths` can be trickier to setup, (see [this](https://nodejs.org/api/packages.html#packages_subpath_imports)), and you may find it to not be worth the effort.

View file

@ -10,19 +10,19 @@
"format:apply": "prettier . --write" "format:apply": "prettier . --write"
}, },
"devDependencies": { "devDependencies": {
"bun-types": "^1.1.26", "bun-types": "^1.1.29",
"prettier": "3.3.3" "prettier": "3.3.3"
}, },
"dependencies": { "dependencies": {
"@lilybird/handlers": "0.6.0-beta.20", "@lilybird/handlers": "0.6.0",
"@lilybird/jsx": "0.3.0", "@lilybird/jsx": "0.3.0",
"@lilybird/transformers": "^0.4.1", "@lilybird/transformers": "^0.4.2",
"@paperdave/logger": "^3.0.1", "@paperdave/logger": "^3.0.1",
"@purplet/serialize": "^2.0.0", "@purplet/serialize": "^2.0.0",
"@wolfram-alpha/wolfram-alpha-api": "^23.1004.144821-RELEASE", "@wolfram-alpha/wolfram-alpha-api": "^23.1004.144821-RELEASE",
"algoliasearch": "^5.2.3", "algoliasearch": "^5.5.3",
"bun-tracestrings": "github:oven-sh/bun.report", "bun-tracestrings": "https://github.com/oven-sh/bun.report",
"gray-matter": "^4.0.3", "gray-matter": "^4.0.3",
"lilybird": "^0.7.3" "lilybird": "^0.8.0"
} }
} }