UNPKG

@hansolbangul/notion-api

Version:

A lightweight library for fetching and statically generating data and TypeScript types from Notion pages.

33 lines (31 loc) 596 B
import typescript from 'rollup-plugin-typescript2'; export default [ { input: './src/index.ts', output: [ { file: './dist/index.js', format: 'cjs', sourcemap: true, }, { file: './dist/index.esm.js', format: 'esm', sourcemap: true, }, ], plugins: [typescript()], }, { input: './script/type-cli.ts', output: [ { file: './dist/type-cli.cjs', format: 'cjs', sourcemap: true, banner: '#!/usr/bin/env node', }, ], plugins: [typescript()], }, ];