@kevinmarrec/tsconfig 1.0.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/.github/workflows/release.yml +41 -0
- package/README.md +19 -0
- package/package.json +18 -0
- package/tsconfig.json +19 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- v*
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
release:
|
|
10
|
+
name: Release
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
permissions:
|
|
13
|
+
actions: write
|
|
14
|
+
contents: write
|
|
15
|
+
id-token: write
|
|
16
|
+
steps:
|
|
17
|
+
- name: Checkout
|
|
18
|
+
uses: actions/checkout@v4
|
|
19
|
+
with:
|
|
20
|
+
fetch-depth: 0
|
|
21
|
+
|
|
22
|
+
- name: Set up Bun
|
|
23
|
+
uses: oven-sh/setup-bun@v2
|
|
24
|
+
with:
|
|
25
|
+
bun-version-file: package.json
|
|
26
|
+
|
|
27
|
+
- name: Set up Node.js
|
|
28
|
+
uses: actions/setup-node@v4
|
|
29
|
+
with:
|
|
30
|
+
node-version: lts/*
|
|
31
|
+
registry-url: https://registry.npmjs.org
|
|
32
|
+
|
|
33
|
+
- name: Publish
|
|
34
|
+
run: npm publish --provenance --access public --tag ${{ contains(github.ref_name, 'beta') && 'beta' || 'latest' }}
|
|
35
|
+
env:
|
|
36
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
37
|
+
|
|
38
|
+
- name: Create release notes
|
|
39
|
+
run: bunx changelogithub
|
|
40
|
+
env:
|
|
41
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @kevinmarrec/tsconfig
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
Opinionated [TypeScript](https://www.typescriptlang.org) config.
|
|
6
|
+
|
|
7
|
+
## Opinions
|
|
8
|
+
|
|
9
|
+
Have a direct look at the [source (tsconfig.json)](https://github.com/kevinmarrec/cloudstack/blob/main/packages/tsconfig/tsconfig.json).
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
> Requires [TypeScript](https://www.typescriptlang.org) v5.7 _or later_.
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"extends": "@kevinmarrec/tsconfig"
|
|
18
|
+
}
|
|
19
|
+
```
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kevinmarrec/tsconfig",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Opinionated TypeScript config.",
|
|
5
|
+
"packageManager": "bun@1.2.21",
|
|
6
|
+
"author": "Kevin Marrec <kevin@marrec.io>",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"homepage": "https://github.com/kevinmarrec/tsconfig#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/kevinmarrec/tsconfig.git"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"tsconfig",
|
|
15
|
+
"typescript"
|
|
16
|
+
],
|
|
17
|
+
"main": "tsconfig.json"
|
|
18
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"jsx": "preserve",
|
|
5
|
+
"lib": ["ESNext"],
|
|
6
|
+
"moduleDetection": "force",
|
|
7
|
+
"module": "ESNext",
|
|
8
|
+
"moduleResolution": "Bundler",
|
|
9
|
+
"resolveJsonModule": true,
|
|
10
|
+
"allowJs": true,
|
|
11
|
+
"strict": true,
|
|
12
|
+
"noFallthroughCasesInSwitch": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"isolatedModules": true,
|
|
15
|
+
"verbatimModuleSyntax": true,
|
|
16
|
+
"erasableSyntaxOnly": true,
|
|
17
|
+
"skipLibCheck": true
|
|
18
|
+
}
|
|
19
|
+
}
|