Skip to content

Commit 18240c0

Browse files
author
Matt Pocock
committed
Publish
0 parents  commit 18240c0

21 files changed

+2694
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": [
11+
"@total-typescript/env",
12+
"@total-typescript/internal-cli",
13+
"scriptkit-sync",
14+
"example-app",
15+
"remotion-code-hike",
16+
"example-package"
17+
]
18+
}

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: CI Checks
2+
on: push
3+
4+
jobs:
5+
ci:
6+
name: CI
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- uses: pnpm/action-setup@v4
11+
- uses: actions/setup-node@v4
12+
with:
13+
node-version: 20.x
14+
cache: "pnpm"
15+
16+
- run: pnpm install --no-frozen-lockfile
17+
- run: pnpm run ci

.github/workflows/publish.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
7+
concurrency: ${{ github.workflow }}-${{ github.ref }}
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v2
15+
with:
16+
version: 9
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20.x
20+
cache: "pnpm"
21+
22+
- run: pnpm install --no-frozen-lockfile
23+
- name: Create Release Pull Request or Publish
24+
id: changesets
25+
uses: changesets/action@v1
26+
with:
27+
publish: pnpm run release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
node_modules
2+
dist
3+
.turbo
4+
*.tsbuildinfo
5+
*.local.*
6+
*.local
7+
.env
8+
.twoslash-lint
9+
coverage

.vscode/launch.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"version": "1.0.0",
3+
"configurations": [
4+
{
5+
"name": "vitest",
6+
"type": "node",
7+
"request": "launch",
8+
// Debug current file in VSCode
9+
"program": "${fileDirname}",
10+
/*
11+
* Path to tsx binary
12+
* Assuming locally installed
13+
*/
14+
"runtimeExecutable": "vitest",
15+
/*
16+
* Open terminal when debugging starts (Optional)
17+
* Useful to see console.logs
18+
*/
19+
"console": "integratedTerminal",
20+
"internalConsoleOptions": "neverOpen",
21+
// Files to exclude from debugger (e.g. call stack)
22+
"skipFiles": [
23+
// Node.js internal core modules
24+
"<node_internals>/**",
25+
// Ignore all dependencies (optional)
26+
"${workspaceFolder}/node_modules/**",
27+
],
28+
},
29+
{
30+
"name": "tsx",
31+
"type": "node",
32+
"request": "launch",
33+
// Debug current file in VSCode
34+
"program": "${file}",
35+
/*
36+
* Path to tsx binary
37+
* Assuming locally installed
38+
*/
39+
"runtimeExecutable": "tsx",
40+
/*
41+
* Open terminal when debugging starts (Optional)
42+
* Useful to see console.logs
43+
*/
44+
"console": "integratedTerminal",
45+
"internalConsoleOptions": "neverOpen",
46+
// Files to exclude from debugger (e.g. call stack)
47+
"skipFiles": [
48+
// Node.js internal core modules
49+
"<node_internals>/**",
50+
// Ignore all dependencies (optional)
51+
"${workspaceFolder}/node_modules/**",
52+
],
53+
}
54+
]
55+
}

.vscode/settings.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"explorer.fileNesting.patterns": {
3+
"*.ts": "${capture}.js",
4+
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
5+
"*.jsx": "${capture}.js",
6+
"*.tsx": "${capture}.ts",
7+
"tsconfig.json": "tsconfig.*.json",
8+
"package.json": "package-lock.json, yarn.lock"
9+
},
10+
"typescript.tsdk": "node_modules/typescript/lib",
11+
"typescript.preferences.autoImportSpecifierExcludeRegexes": [
12+
"^assert$",
13+
"^node:assert$",
14+
"^@radix-ui",
15+
"^cmdk$"
16+
],
17+
"typescript.preferences.includePackageJsonAutoImports": "on",
18+
"presentation-mode.configBackup": {
19+
"explorer.autoReveal": "undefined",
20+
"workbench.statusBar.visible": "undefined",
21+
"workbench.editor.showTabs": "undefined",
22+
"editor.lineNumbers": "undefined",
23+
"editor.folding": "undefined",
24+
"github.copilot.enable": "undefined",
25+
"explorer.fileNesting.patterns": {
26+
"*.ts": "${capture}.js",
27+
"*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts",
28+
"*.jsx": "${capture}.js",
29+
"*.tsx": "${capture}.ts",
30+
"tsconfig.json": "tsconfig.*.json",
31+
"package.json": "package-lock.json, yarn.lock"
32+
},
33+
"explorer.compactFolders": "undefined",
34+
"breadcrumbs.filePath": "undefined",
35+
"workbench.startupEditor": "undefined",
36+
"editor.lightbulb.enabled": "undefined",
37+
"editor.renderLineHighlight": "undefined",
38+
"editor.guides.highlightActiveIndentation": "undefined",
39+
"editor.guides.indentation": "undefined",
40+
"editor.guides.highlightActiveBracketPair": "undefined",
41+
"editor.matchBrackets": "undefined",
42+
"editor.occurrencesHighlight": "undefined",
43+
"editor.selectionHighlight": "undefined",
44+
"workbench.colorTheme": "undefined",
45+
"prettier.trailingComma": "undefined",
46+
"zenMode.showTabs": "undefined",
47+
"workbench.editor.labelFormat": "undefined"
48+
},
49+
}

.vscode/snippets.code-snippets

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"thread": {
3+
"prefix": "thread",
4+
"body": ["🧵"]
5+
},
6+
"point-down": {
7+
"prefix": "point-down",
8+
"body": ["👇"]
9+
},
10+
"fire": {
11+
"prefix": "fire",
12+
"body": ["🔥"]
13+
},
14+
"ts": {
15+
"prefix": "ts",
16+
"body": ["```ts twoslash", "$1", "```"]
17+
},
18+
"tsx": {
19+
"prefix": "tsx",
20+
"body": ["```tsx twoslash", "$1", "```"]
21+
},
22+
"json": {
23+
"prefix": "json",
24+
"body": ["```json", "$1", "```"]
25+
},
26+
"fm": {
27+
"prefix": "fm",
28+
"body": ["---", "summary: \"$1\"", "---"]
29+
},
30+
"create-server-function": {
31+
"prefix": ["csf"],
32+
"body": [
33+
"createServerFunction(",
34+
" z.object({ $1 }),",
35+
" async ({ input, p, fs }) => {$2}",
36+
"),"
37+
]
38+
},
39+
"component": {
40+
"prefix": ["comp", "c"],
41+
"body": [
42+
"export interface $1Props {",
43+
" className?: string;",
44+
" children?: React.ReactNode;",
45+
"}",
46+
"",
47+
"export const $1 = (props: $1Props) => {",
48+
" return <$2 className={cn(\"\", props.className)}>{props.children}</$2>;",
49+
"}"
50+
]
51+
}
52+
}

package.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"name": "total-typescript-monorepo",
3+
"version": "1.0.0",
4+
"type": "module",
5+
"packageManager": "[email protected]",
6+
"description": "",
7+
"engines": {
8+
"node": ">=22"
9+
},
10+
"private": true,
11+
"scripts": {
12+
"dev": "turbo watch build lint test",
13+
"ci": "turbo build test lint",
14+
"build": "turbo build",
15+
"release": "pnpm run ci && changeset publish"
16+
},
17+
"keywords": [],
18+
"author": "Matt Pocock",
19+
"license": "ISC",
20+
"dependencies": {
21+
"@changesets/cli": "^2.27.7",
22+
"@total-typescript/tsconfig": "^1.0.4",
23+
"@types/node": "^22.7.7",
24+
"prettier": "^3.3.3",
25+
"tsx": "^4.19.0",
26+
"turbo": "2.2.4-canary.8",
27+
"typescript": "5.6.2",
28+
"vitest": "^2.0.5"
29+
},
30+
"resolutions": {
31+
"typescript": "5.6.2"
32+
}
33+
}

packages/evalite-runner/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "example-package",
3+
"version": "0.0.2",
4+
"private": true,
5+
"type": "module",
6+
"files": [
7+
"./dist/*"
8+
],
9+
"scripts": {
10+
"build": "tsc",
11+
"test": "vitest run"
12+
},
13+
"exports": {
14+
".": "./dist/index.js"
15+
}
16+
}

packages/evalite-runner/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const example = "example";
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { expect, it } from "vitest";
2+
import { example } from "../index.js";
3+
4+
it("Should work", () => {
5+
expect(example).toBe("example");
6+
});

packages/evalite-runner/tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "@total-typescript/tsconfig/tsc/no-dom/library-monorepo",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "src",
6+
},
7+
}

packages/evalite/package.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "example-package",
3+
"version": "0.0.2",
4+
"private": true,
5+
"type": "module",
6+
"files": [
7+
"./dist/*"
8+
],
9+
"scripts": {
10+
"build": "tsc",
11+
"test": "vitest run"
12+
},
13+
"exports": {
14+
".": "./dist/index.js"
15+
}
16+
}

packages/evalite/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const example = "example";
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { expect, it } from "vitest";
2+
import { example } from "../index.js";
3+
4+
it("Should work", () => {
5+
expect(example).toBe("example");
6+
});

packages/evalite/tsconfig.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "@total-typescript/tsconfig/tsc/no-dom/library-monorepo",
3+
"compilerOptions": {
4+
"outDir": "dist",
5+
"rootDir": "src",
6+
},
7+
}

0 commit comments

Comments
 (0)