We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
1.0.33+9e91e137f
Darwin 23.3.0 arm64 arm
bun run build.ts
/// <reference types='bun-types' /> import { existsSync, rmSync } from 'fs'; import pkg from './package.json'; const root = import.meta.dir; const libDir = root + '/build'; if (existsSync(libDir)) rmSync(libDir, { recursive: true }); // Bundle all with Bun Bun.build({ root, format: 'esm', target: 'bun', outdir: libDir, minify: { whitespace: true, }, entrypoints: ['./src/index.ts', './src'], external: Object.keys((pkg as any).dependencies! ?? {}), }).then(console.log); // Build type declarations Bun.spawn(['bun', 'x', 'tsc', '--outdir', libDir], { stdout: 'inherit', stderr: 'inherit', });
No response
logs: [ 13 | import { Coordinates } from '@models/types'; ^ error: No matching export in "src/models/types/index.ts" for import "Coordinates"
in tsconfig.json I have this path: "@models/types": ["./src/models/types"],
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What version of Bun is running?
1.0.33+9e91e137f
What platform is your computer?
Darwin 23.3.0 arm64 arm
What steps can reproduce the bug?
bun run build.ts
What is the expected behavior?
No response
What do you see instead?
logs: [
13 | import { Coordinates } from '@models/types';
^
error: No matching export in "src/models/types/index.ts" for import "Coordinates"
Additional information
in tsconfig.json I have this path: "@models/types": ["./src/models/types"],
The text was updated successfully, but these errors were encountered: