๐Ÿ“ฆ vuetifyjs / one

๐Ÿ“„ rollup.types.config.js ยท 31 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31import { fileURLToPath } from 'node:url'
import alias from '@rollup/plugin-alias'
import dts from 'rollup-plugin-dts'

/** @type {import("rollup").RollupOptions[]} */
const options = [{
  input: 'types-temp/src/index.d.ts',
  output: { file: 'dist/index.d.ts', format: 'es', sourcemap: false },
  plugins: [
    dts(),
    alias({
      entries: [
        { find: /^@\/(.*)/, replacement: fileURLToPath(new URL('types-temp/src/$1', import.meta.url)) },
      ],
    }),
  ],
}, {
  input: 'types-temp/src/stores/auth.d.ts',
  output: { file: 'dist/stores/auth.d.ts', format: 'es', sourcemap: false },
  plugins: [
    dts(),
    alias({
      entries: [
        { find: /^@\/(.*)/, replacement: fileURLToPath(new URL('types-temp/src/$1', import.meta.url)) },
      ],
    }),
  ],
}]

export default options