Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Dec 20, 2024
1 parent ace095c commit 46347c3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions packages/nextra-theme-blog/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { reactCompilerPlugin } from 'esbuild-react-compiler-plugin'
import { defineConfig } from 'tsup'
import { defaultEntry } from '../nextra-theme-docs/tsup.config'
import { $ } from 'zx'
import { defaultEntry } from '../nextra/default-entry'
import packageJson from './package.json'
import 'zx/globals'

export default defineConfig({
name: packageJson.name,
Expand Down
10 changes: 2 additions & 8 deletions packages/nextra-theme-docs/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,9 @@ import fs from 'node:fs/promises'
import path from 'node:path'
import { reactCompilerPlugin } from 'esbuild-react-compiler-plugin'
import { defineConfig } from 'tsup'
import { $ } from 'zx'
import { defaultEntry } from '../nextra/default-entry'
import packageJson from './package.json'
import 'zx/globals'

export const defaultEntry = [
'src/**/*.{ts,tsx}',
'!**/*.d.ts',
'!**/__tests__',
'!**/*.{test,spec}.{ts,tsx}'
]

export default defineConfig({
name: packageJson.name,
Expand Down
6 changes: 6 additions & 0 deletions packages/nextra/default-entry.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const defaultEntry = [
'src/**/*.{ts,tsx}',
'!**/*.d.ts',
'!**/__tests__',
'!**/*.{test,spec}.{ts,tsx}'
]
2 changes: 1 addition & 1 deletion packages/nextra/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'node:path'
import svgr from 'esbuild-plugin-svgr'
import { reactCompilerPlugin } from 'esbuild-react-compiler-plugin'
import { defineConfig } from 'tsup'
import { defaultEntry } from '../nextra-theme-docs/tsup.config.js'
import { defaultEntry } from './default-entry'

Check failure on line 6 in packages/nextra/tsup.config.ts

View workflow job for this annotation

GitHub Actions / lint

Missing file extension for "./default-entry"
import packageJson from './package.json'
import { CWD, IS_PRODUCTION } from './src/server/constants.js'

Expand Down

0 comments on commit 46347c3

Please sign in to comment.