Skip to content

Commit 9ff9b5f

Browse files
committed
More prep
1 parent 74f9dd7 commit 9ff9b5f

File tree

34 files changed

+612
-235
lines changed

34 files changed

+612
-235
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,6 @@
8989
"url": "./packages/api-docs/dist/api.schema.json"
9090
}
9191
],
92-
"files.trimTrailingWhitespace": false
92+
"files.trimTrailingWhitespace": false,
93+
"typescript.tsdk": "node_modules/typescript/lib"
9394
}

package.json

+4-5
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"@types/hash-sum": "^1.0.0",
3434
"@types/jsdoc-api": "workspace:1.0.0",
3535
"@types/markdown-it": "^12.2.3",
36-
"@types/mermaid": "^9.1.0",
3736
"@types/postcss-advanced-variables": "workspace:1.0.0",
3837
"@types/postcss-env-function": "workspace:1.0.0",
3938
"@types/postcss-functions": "workspace:1.0.0",
@@ -46,7 +45,6 @@
4645
"@vue/runtime-core": "^3.2.45",
4746
"@vue/runtime-dom": "^3.2.45",
4847
"@vueuse/core": "^9.5.0",
49-
"codesandbox-sandpack-vue3": "^1.2.10",
5048
"docs-snippet": "^1.0.4",
5149
"fenceparser": "^2.2.0",
5250
"fflate": "^0.7.4",
@@ -69,9 +67,9 @@
6967
"postcss-nesting": "^10.2.0",
7068
"postcss-property-lookup": "^3.0.0",
7169
"postcss-scss": "^4.0.5",
72-
"preact": "^10.11.3",
73-
"preact-render-to-string": "^5.2.6",
7470
"prettier": "^2.7.1",
71+
"rollup-plugin-visualizer": "^5.8.3",
72+
"sandpack-vue3": "^2.0.0",
7573
"sass": "^1.56.1",
7674
"shiki": "^0.11.1",
7775
"shiki-twoslash": "^3.1.0",
@@ -99,7 +97,8 @@
9997
"@starbeam/timeline": "0.8.6",
10098
"@starbeam/universal": "0.8.6",
10199
"@starbeam/interfaces": "0.8.6",
102-
"@starbeam/preact": "0.8.7"
100+
"@starbeam/preact": "0.8.6",
101+
"preact-render-to-string": "5.2.6"
103102
},
104103
"peerDependencyRules": {
105104
"allowedVersions": {

packages/twoslash/package.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"name": "@starbeam/docs-twoslash",
3+
"private": true,
4+
"devDependencies": {
5+
"@types/react": "*",
6+
"@types/react-dom": "*",
7+
"typescript": "*",
8+
"@starbeam/debug": "*",
9+
"@starbeam/universal": "*",
10+
"@starbeam/js": "*",
11+
"@starbeam/preact": "*",
12+
"@starbeam/react": "*",
13+
"@starbeam/timeline": "*",
14+
"@starbeam/interfaces": "*",
15+
"react": "*",
16+
"react-dom": "*",
17+
"preact": "*",
18+
"preact-render-to-string": "*"
19+
}
20+
}

packages/twoslash/tsconfig.json

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"compilerOptions": {
3+
"compilerOptions": {
4+
"composite": true,
5+
"outDir": "dist",
6+
"rootDir": ".",
7+
"target": "esnext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,
8+
"jsx": "react-jsx" /* Specify what JSX code is generated. */,
9+
"jsxImportSource": "preact",
10+
"module": "NodeNext" /* Specify what module code is generated. */,
11+
"moduleResolution": "node" /* Specify how TypeScript looks up a file from a given module specifier. */,
12+
"resolveJsonModule": true /* Enable importing .json files. */,
13+
"importsNotUsedAsValues": "error" /* Specify emit/checking behavior for imports that are only used for types. */,
14+
"isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */,
15+
"allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */,
16+
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
17+
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
18+
"strict": true /* Enable all strict type-checking options. */,
19+
"skipLibCheck": true /* Skip type checking all .d.ts files. */
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)