Skip to content

Commit

Permalink
fix some turbo stuff (#4623)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Apr 14, 2022
1 parent 0c53d12 commit 016a78c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/kit/.gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.DS_Store
/node_modules
/dist
/assets/*
/client/**/*.d.ts
/dist
/docs
/test/**/.svelte-kit
/test/**/build
!/src/core/adapt/fixtures/*/.svelte-kit
Expand Down
4 changes: 3 additions & 1 deletion packages/kit/scripts/extract-types.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import fs from 'fs';
import ts from 'typescript';
import prettier from 'prettier';
import { mkdirp } from '../src/utils/filesystem.js';

/** @typedef {{ name: string, comment: string, snippet: string }} Extracted */

Expand Down Expand Up @@ -126,8 +127,9 @@ modules.push({

modules.sort((a, b) => (a.name < b.name ? -1 : 1));

mkdirp('docs');
fs.writeFileSync(
'../../documentation/types.js',
'docs/types.js',
`
/* This file is generated by running \`node scripts/extract-types.js\`
in the packages/kit directory — do not edit it */
Expand Down
2 changes: 1 addition & 1 deletion sites/kit.svelte.dev/src/lib/docs/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'prismjs/components/prism-diff.js';
import 'prismjs/components/prism-typescript.js';
import 'prism-svelte';
import { extract_frontmatter, transform } from './markdown';
import { modules } from '../../../../../../documentation/types.js';
import { modules } from '../../../../../../packages/kit/docs/types.js';
import { render_modules } from './modules';

const languages = {
Expand Down
2 changes: 1 addition & 1 deletion sites/kit.svelte.dev/src/lib/docs/server/modules.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { modules } from '../../../../../../documentation/types.js';
import { modules } from '../../../../../../packages/kit/docs/types.js';

/** @param {'types' | 'exports'} kind */
export function render_modules(kind) {
Expand Down
9 changes: 8 additions & 1 deletion turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
"build": {
"dependsOn": ["^build", "$VERCEL"],
"inputs": ["src/**", "scripts/**", "shared/**", "templates/**"],
"outputs": ["files/**", "dist/**", "assets/**", ".svelte-kit/**", ".vercel_build_output/**"]
"outputs": [
"files/**",
"dist/**",
"docs/**",
"assets/**",
".svelte-kit/**",
".vercel_build_output/**"
]
},
"check": {
"outputs": []
Expand Down

0 comments on commit 016a78c

Please sign in to comment.