@zayne-labs/tsconfig 0.2.3 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +32 -30
- package/.github/workflows/release-and-publish(changeset).yml +0 -49
- package/CHANGELOG.md +0 -43
- package/README.md +0 -77
- /package/{base → src/base}/tsconfig.base.json +0 -0
- /package/{bundler → src/bundler}/tsconfig.dom.json +0 -0
- /package/{bundler → src/bundler}/tsconfig.next.json +0 -0
- /package/{bundler → src/bundler}/tsconfig.no-dom.json +0 -0
- /package/{tsc → src/tsc}/dom/tsconfig.app.json +0 -0
- /package/{tsc → src/tsc}/dom/tsconfig.library-monorepo.json +0 -0
- /package/{tsc → src/tsc}/dom/tsconfig.library.json +0 -0
- /package/{tsc → src/tsc}/no-dom/tsconfig.app.json +0 -0
- /package/{tsc → src/tsc}/no-dom/tsconfig.library-monorepo.json +0 -0
- /package/{tsc → src/tsc}/no-dom/tsconfig.library.json +0 -0
package/package.json
CHANGED
|
@@ -1,45 +1,47 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zayne-labs/tsconfig",
|
|
3
|
-
"version": "0.2.3",
|
|
4
3
|
"type": "module",
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"description": "A collection of TypeScript configurations for various projects, based on Total TypeScript's TSConfig Cheat Sheet, with a few additions.",
|
|
6
|
+
"author": "Ryan Zayne",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/ryan-zayne/config#readme",
|
|
6
9
|
"repository": {
|
|
7
10
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/zayne-labs/
|
|
9
|
-
},
|
|
10
|
-
"homepage": "https://github.com/ryan-zayne/tsconfig#readme",
|
|
11
|
-
"license": "MIT",
|
|
12
|
-
"author": "Ryan Zayne",
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"access": "public",
|
|
15
|
-
"registry": "https://registry.npmjs.org/",
|
|
16
|
-
"provenance": true
|
|
11
|
+
"url": "https://github.com/zayne-labs/config"
|
|
17
12
|
},
|
|
18
13
|
"exports": {
|
|
19
|
-
"./base": "./base/tsconfig.base.json",
|
|
20
|
-
"./tsc": "./tsc/dom/tsconfig.app.json",
|
|
21
|
-
"./tsc/dom": "./tsc/dom/tsconfig.app.json",
|
|
22
|
-
"./tsc/dom/app": "./tsc/dom/tsconfig.app.json",
|
|
23
|
-
"./tsc/dom/library": "./tsc/dom/tsconfig.library.json",
|
|
24
|
-
"./tsc/dom/library-monorepo": "./tsc/dom/tsconfig.library-monorepo.json",
|
|
25
|
-
"./tsc/no-dom": "./tsc/no-dom/tsconfig.app.json",
|
|
26
|
-
"./tsc/no-dom/app": "./tsc/no-dom/tsconfig.app.json",
|
|
27
|
-
"./tsc/no-dom/library": "./tsc/no-dom/tsconfig.library.json",
|
|
28
|
-
"./bundler": "./bundler/tsconfig.dom.json",
|
|
29
|
-
"./bundler/dom": "./bundler/tsconfig.dom.json",
|
|
30
|
-
"./bundler/dom/app": "./bundler/tsconfig.dom.json",
|
|
31
|
-
"./bundler/dom/library": "./bundler/tsconfig.dom.json",
|
|
32
|
-
"./bundler/dom/library-monorepo": "./bundler/tsconfig.dom.json",
|
|
33
|
-
"./bundler/next": "./bundler/tsconfig.next.json",
|
|
34
|
-
"./bundler/no-dom": "./bundler/tsconfig.no-dom.json",
|
|
35
|
-
"./bundler/no-dom/app": "./bundler/tsconfig.no-dom.json",
|
|
36
|
-
"./bundler/no-dom/library": "./bundler/tsconfig.no-dom.json",
|
|
37
|
-
"./bundler/no-dom/library-monorepo": "./bundler/tsconfig.no-dom.json"
|
|
14
|
+
"./base": "./src/base/tsconfig.base.json",
|
|
15
|
+
"./tsc": "./src/tsc/dom/tsconfig.app.json",
|
|
16
|
+
"./tsc/dom": "./src/tsc/dom/tsconfig.app.json",
|
|
17
|
+
"./tsc/dom/app": "./src/tsc/dom/tsconfig.app.json",
|
|
18
|
+
"./tsc/dom/library": "./src/tsc/dom/tsconfig.library.json",
|
|
19
|
+
"./tsc/dom/library-monorepo": "./src/tsc/dom/tsconfig.library-monorepo.json",
|
|
20
|
+
"./tsc/no-dom": "./src/tsc/no-dom/tsconfig.app.json",
|
|
21
|
+
"./tsc/no-dom/app": "./src/tsc/no-dom/tsconfig.app.json",
|
|
22
|
+
"./tsc/no-dom/library": "./src/tsc/no-dom/tsconfig.library.json",
|
|
23
|
+
"./bundler": "./src/bundler/tsconfig.dom.json",
|
|
24
|
+
"./bundler/dom": "./src/bundler/tsconfig.dom.json",
|
|
25
|
+
"./bundler/dom/app": "./src/bundler/tsconfig.dom.json",
|
|
26
|
+
"./bundler/dom/library": "./src/bundler/tsconfig.dom.json",
|
|
27
|
+
"./bundler/dom/library-monorepo": "./src/bundler/tsconfig.dom.json",
|
|
28
|
+
"./bundler/next": "./src/bundler/tsconfig.next.json",
|
|
29
|
+
"./bundler/no-dom": "./src/bundler/tsconfig.no-dom.json",
|
|
30
|
+
"./bundler/no-dom/app": "./src/bundler/tsconfig.no-dom.json",
|
|
31
|
+
"./bundler/no-dom/library": "./src/bundler/tsconfig.no-dom.json",
|
|
32
|
+
"./bundler/no-dom/library-monorepo": "./src/bundler/tsconfig.no-dom.json"
|
|
38
33
|
},
|
|
39
34
|
"devDependencies": {
|
|
40
35
|
"@changesets/cli": "^2.28.1"
|
|
41
36
|
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public",
|
|
39
|
+
"registry": "https://registry.npmjs.org/",
|
|
40
|
+
"provenance": true
|
|
41
|
+
},
|
|
42
42
|
"scripts": {
|
|
43
|
-
"release": "
|
|
43
|
+
"release": "pnpm publish --no-git-checks",
|
|
44
|
+
"release:old": "changeset publish",
|
|
45
|
+
"release:test": "pnpx pkg-pr-new publish"
|
|
44
46
|
}
|
|
45
47
|
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
name: Changeset - Release and Publish
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches: main
|
|
5
|
-
|
|
6
|
-
permissions:
|
|
7
|
-
contents: write
|
|
8
|
-
pull-requests: write
|
|
9
|
-
id-token: write
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
release:
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
timeout-minutes: 15
|
|
15
|
-
strategy:
|
|
16
|
-
matrix:
|
|
17
|
-
node-version: [20.x]
|
|
18
|
-
|
|
19
|
-
steps:
|
|
20
|
-
- name: Checkout repo
|
|
21
|
-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
|
|
22
|
-
with:
|
|
23
|
-
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits.
|
|
24
|
-
fetch-depth: 0
|
|
25
|
-
|
|
26
|
-
- name: Setup pnpm
|
|
27
|
-
uses: pnpm/action-setup@v4
|
|
28
|
-
with:
|
|
29
|
-
version: 9.15.4
|
|
30
|
-
|
|
31
|
-
- name: Setup Node.js 20.x
|
|
32
|
-
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
|
|
33
|
-
with:
|
|
34
|
-
node-version: ${{ matrix.node-version }}
|
|
35
|
-
cache: pnpm
|
|
36
|
-
|
|
37
|
-
- name: Install dependencies
|
|
38
|
-
run: pnpm install --frozen-lockfile
|
|
39
|
-
|
|
40
|
-
- name: Create Release Pull Request or Publish to npm
|
|
41
|
-
uses: changesets/action@v1
|
|
42
|
-
with:
|
|
43
|
-
commit: "ci(changesets): version and release packages"
|
|
44
|
-
title: "ci(changesets): version and release packages"
|
|
45
|
-
publish: pnpm release
|
|
46
|
-
|
|
47
|
-
env:
|
|
48
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
49
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/CHANGELOG.md
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# @zayne-labs/tsconfig
|
|
2
|
-
|
|
3
|
-
## 0.2.2
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 1cbb9df: add a json file for all base options. add erasableSyntaxOnly flag
|
|
8
|
-
|
|
9
|
-
## 0.2.1
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- b92f8e1: fix provenance
|
|
14
|
-
|
|
15
|
-
## 0.2.0
|
|
16
|
-
|
|
17
|
-
### Minor Changes
|
|
18
|
-
|
|
19
|
-
- 599c354: feat: remove vite config
|
|
20
|
-
|
|
21
|
-
## 1.0.0
|
|
22
|
-
|
|
23
|
-
### Major Changes
|
|
24
|
-
|
|
25
|
-
- 9dadb83: feat:! removed vite config
|
|
26
|
-
|
|
27
|
-
## 0.1.2
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- cd7243e: add provenance
|
|
32
|
-
|
|
33
|
-
## 0.1.1
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- 3ef8a97: .
|
|
38
|
-
|
|
39
|
-
## 0.1.0
|
|
40
|
-
|
|
41
|
-
### Minor Changes
|
|
42
|
-
|
|
43
|
-
- 195899d: added new import paths
|
package/README.md
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
# `@zayne-labs/tsconfig`
|
|
2
|
-
|
|
3
|
-
This package helps set proper tsconfig presets for most projects. Inspired by Matt Pocock's [TSConfig Cheat Sheet](https://www.totaltypescript.com/tsconfig-cheat-sheet).
|
|
4
|
-
|
|
5
|
-
## Setup
|
|
6
|
-
|
|
7
|
-
1. Install:
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
# Npm
|
|
11
|
-
npm install --save-dev @zayne-labs/tsconfig
|
|
12
|
-
|
|
13
|
-
# Pnpm
|
|
14
|
-
pnpm add -D @zayne-labs/tsconfig
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
2. Choose which `tsconfig.json` you need from the [list](#list-of-tsconfigs) below.
|
|
18
|
-
|
|
19
|
-
3. Add it to your `tsconfig.json`:
|
|
20
|
-
|
|
21
|
-
```jsonc
|
|
22
|
-
{
|
|
23
|
-
// For building an app that runs in the DOM with an external bundler
|
|
24
|
-
"extends": "@zayne-labs/tsconfig/bundler/dom/app"
|
|
25
|
-
}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## List of TSConfigs
|
|
29
|
-
|
|
30
|
-
### Are You Using `tsc` To Turn Your `.ts` Files Into `.js` Files?
|
|
31
|
-
|
|
32
|
-
#### Yes
|
|
33
|
-
|
|
34
|
-
If yes, use this selection of configs:
|
|
35
|
-
|
|
36
|
-
```jsonc
|
|
37
|
-
{
|
|
38
|
-
// For code that runs in the DOM:
|
|
39
|
-
"extends": "@zayne-labs/tsconfig/tsc/dom/app", // For an app
|
|
40
|
-
"extends": "@zayne-labs/tsconfig/tsc/dom/library", // For a library
|
|
41
|
-
"extends": "@zayne-labs/tsconfig/tsc/dom/library-monorepo", // For a library in a monorepo
|
|
42
|
-
|
|
43
|
-
// For code that doesn't run in the DOM (for instance, in Node.js):
|
|
44
|
-
"extends": "@zayne-labs/tsconfig/tsc/no-dom/app", // For an app
|
|
45
|
-
"extends": "@zayne-labs/tsconfig/tsc/no-dom/library", // For a library
|
|
46
|
-
"extends": "@zayne-labs/tsconfig/tsc/no-dom/library-monorepo" // For a library in a monorepo
|
|
47
|
-
}
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
#### No
|
|
51
|
-
|
|
52
|
-
If no, you're probably using an external bundler.
|
|
53
|
-
|
|
54
|
-
```jsonc
|
|
55
|
-
{
|
|
56
|
-
// For code that runs in the DOM:
|
|
57
|
-
"extends": "@zayne-labs/tsconfig/bundler/dom/app", // For an app
|
|
58
|
-
"extends": "@zayne-labs/tsconfig/bundler/dom/library", // For a library
|
|
59
|
-
"extends": "@zayne-labs/tsconfig/bundler/dom/library-monorepo", // For a library in a monorepo
|
|
60
|
-
|
|
61
|
-
// For code that doesn't run in the DOM (for instance, in Node.js):
|
|
62
|
-
"extends": "@zayne-labs/tsconfig/bundler/no-dom/app", // For an app
|
|
63
|
-
"extends": "@zayne-labs/tsconfig/bundler/no-dom/library", // For a library
|
|
64
|
-
"extends": "@zayne-labs/tsconfig/bundler/no-dom/library-monorepo" // For a library in a monorepo
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
### Framework-Specific Options
|
|
69
|
-
|
|
70
|
-
The following are currently supported framework-specific options, will add more if needed in future:
|
|
71
|
-
|
|
72
|
-
```jsonc
|
|
73
|
-
{
|
|
74
|
-
// For a nextjs app
|
|
75
|
-
"extends": "@zayne-labs/tsconfig/bundler/dom/next"
|
|
76
|
-
}
|
|
77
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|