Skip to content

Commit

Permalink
update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Aug 23, 2024
1 parent fb941a9 commit 19027fb
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .changeset/new-islands-judge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@robino/tsconfig": minor
---

Adds `bundler.json` and renames `tsconfig.json` to `tsc.json`
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/md/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@robino/tsconfig/tsconfig.json"
"extends": "@robino/tsconfig/tsc.json"
}
2 changes: 1 addition & 1 deletion packages/prettier/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@robino/tsconfig/tsconfig.json"
"extends": "@robino/tsconfig/tsc.json"
}
2 changes: 2 additions & 0 deletions packages/robino/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2 changes: 1 addition & 1 deletion packages/robino/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "@robino/tsconfig/tsconfig.json"
"extends": "@robino/tsconfig/tsc.json"
}
11 changes: 3 additions & 8 deletions packages/tsconfig/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,18 @@ npm i -D @robino/tsconfig
- Sets source dir to `src` and out dir to `dist`
- Assumes you know your runtime, includes `@types/node` as a dependency, and sets `lib` to include DOM types.

## default
## tsc

```json
{
"extends": "@robino/tsconfig/tsconfig.json"
"extends": "@robino/tsconfig/tsc.json"
}
```

## bundler

```json
{
"extends": "@robino/tsconfig/tsconfig.json",
"compilerOptions": {
"moduleResolution": "Bundler",
"module": "Preserve",
"noEmit": true
}
"extends": "@robino/tsconfig/bundler.json"
}
```
9 changes: 9 additions & 0 deletions packages/tsconfig/bundler.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "./tsc.json",
"compilerOptions": {
"moduleResolution": "Bundler",
"module": "Preserve",
"noEmit": true
}
}
2 changes: 1 addition & 1 deletion packages/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
"README.md"
],
"dependencies": {
"@types/node": "^22.4.2"
"@types/node": "^22.5.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"outDir": "${configDir}/dist",
"target": "ESNext",
Expand Down

0 comments on commit 19027fb

Please sign in to comment.