Skip to content

Commit 8bf338e

Browse files
committed
Upgrades
1 parent 6428541 commit 8bf338e

File tree

6 files changed

+45
-7
lines changed

6 files changed

+45
-7
lines changed

.github/workflows/section-repos.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Create Section Repos
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
run:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.x
19+
- run: git config --global user.email "[email protected]"
20+
- run: git config --global user.name "Total TypeScript Bot"
21+
- run: npx @total-typescript/exercise-cli@latest create-section-repos
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
24+
GH_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
.vscode
2+
tsconfig.temp.json

.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.enablePromptUseWorkspaceTsdk": true,
4+
"github.copilot.enable": {
5+
"*": false,
6+
},
7+
"explorer.sortOrder": "mixed",
8+
}

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
"devDependencies": {
88
"@total-typescript/exercise-cli": "^0.11.0",
99
"@types/node": "^18.6.5",
10-
"cross-fetch": "^3.1.5",
1110
"typescript": "^5.4.5",
1211
"vitest": "^2.0.0"
1312
},

renovate.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
"excludePackagePatterns": [
88
"typescript",
99
"vitest",
10-
"zod",
11-
"@total-typescript/exercise-cli"
10+
"jsdom",
11+
"prettier",
12+
"vite-tsconfig-paths",
13+
"react",
14+
"@types/react",
15+
"@total-typescript/exercise-cli",
16+
"zod"
1217
],
1318
"enabled": false
1419
}

vite.config.mts

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
import { defineConfig } from "vite";
1+
import { defineConfig } from "vitest/config";
2+
import tsconfigPaths from "vite-tsconfig-paths";
23

34
export default defineConfig({
45
test: {
5-
include: ["src/**/*.ts"],
6-
setupFiles: ["scripts/setup.ts"],
6+
include: ["src/**/*{problem,solution,explainer}*.{ts,tsx}"],
77
passWithNoTests: true,
8+
environment: "jsdom",
89
},
10+
plugins: [tsconfigPaths()],
911
});

0 commit comments

Comments
 (0)