Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/project references #324

Closed
wants to merge 17 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions fixtures/project-with-references/client/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { type User } from '../server'

export const user: User = {
name: '1'
}
342 changes: 342 additions & 0 deletions fixtures/project-with-references/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions fixtures/project-with-references/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "project-with-references",
"private": true,
"scripts": {
"build": "rollup -c"
},
"dependencies": {
"rollup": "^4.27.3",
"rollup-plugin-dts": "../.."
}
}
12 changes: 12 additions & 0 deletions fixtures/project-with-references/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import dts from 'rollup-plugin-dts'

export default /** @type {import('rollup').RollupOptions} */ ({
input: 'client/index.ts',
output: {
dir: 'dist',
format: 'esm',
},
plugins: [
dts()
]
})
3 changes: 3 additions & 0 deletions fixtures/project-with-references/server/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export interface User {
name: string
}
17 changes: 17 additions & 0 deletions fixtures/project-with-references/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"compilerOptions": {
"rootDir": ".",
"outDir": "./dist",
"declaration": true,
"emitDeclarationOnly": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "Bundler",
"resolveJsonModule": true,
"strict": true,
"strictNullChecks": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
}
}
Loading