11import path from 'node:path'
2- import { fileURLToPath } from 'node:url'
32import commonjs from '@rollup/plugin-commonjs'
43import resolve from '@rollup/plugin-node-resolve'
54import babel from '@rollup/plugin-babel'
65import replace from '@rollup/plugin-replace'
76import terser from '@rollup/plugin-terser'
8- import glob from 'fast-glob'
97import { visualizer } from 'rollup-plugin-visualizer'
108import { importCSS } from 'rollup-plugin-import-css'
119import postcss from 'rollup-plugin-postcss'
1210import postcssPresetPrimer from 'postcss-preset-primer'
1311import MagicString from 'magic-string'
1412import packageJson from './package.json' with { type : 'json' }
1513
16- const __dirname = path . dirname ( fileURLToPath ( import . meta. url ) )
17-
1814const input = new Set ( [
1915 // "exports"
2016 // "."
@@ -28,39 +24,6 @@ const input = new Set([
2824
2925 // "./next"
3026 'src/next/index.ts' ,
31-
32- // Make sure all members are exported
33- 'src/constants.ts' ,
34-
35- ...glob . sync (
36- [
37- // "./lib-esm/hooks/*"
38- 'src/hooks/*' ,
39-
40- // "./lib-esm/polyfills/*"
41- 'src/polyfills/*' ,
42-
43- // "./lib-esm/utils/*"
44- 'src/utils/*' ,
45-
46- // for backward compatbility, see https://github.com/primer/react/pull/3740
47- 'src/ActionMenu/index.ts' ,
48- ] ,
49- {
50- cwd : __dirname ,
51- ignore : [
52- '**/__tests__/**' ,
53- '*.stories.tsx' ,
54-
55- // File currently imports from package.json
56- 'src/utils/test-deprecations.tsx' ,
57-
58- // Files use dependencies which are not listed by package
59- 'src/utils/testing.tsx' ,
60- 'src/utils/test-matchers.tsx' ,
61- ] ,
62- } ,
63- ) ,
6427] )
6528
6629function getEntrypointsFromInput ( input ) {
0 commit comments