Skip to content

Commit

Permalink
Fix buildscript
Browse files Browse the repository at this point in the history
  • Loading branch information
exoRift committed Sep 15, 2023
1 parent 377ae97 commit e562326
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
Binary file modified bun.lockb
Binary file not shown.
6 changes: 6 additions & 0 deletions postcss.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('rollup-plugin-postcss').PostCSSPluginConf} */
export default {
plugins: [
require('autoprefixer')
]
}
7 changes: 0 additions & 7 deletions postcss.config.ts

This file was deleted.

9 changes: 4 additions & 5 deletions rollup.config.ts → rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { type RollupOptions } from 'rollup'

import peerDepsExternal from 'rollup-plugin-peer-deps-external'
import resolve from '@rollup/plugin-node-resolve'
import {
Expand All @@ -9,10 +7,11 @@ import commonjs from '@rollup/plugin-commonjs'
import postcss from 'rollup-plugin-postcss'
import typescript from '@rollup/plugin-typescript'

import packageJson from './package.json'
import packageJson from './package.json' assert { type: 'json' }

/** @type {import('rollup').RollupOptions} */
export default {
input: 'src/index.js',
input: 'src/index.ts',
output: [
{
file: packageJson.main,
Expand All @@ -35,4 +34,4 @@ export default {
commonjs(),
postcss()
]
} satisfies RollupOptions
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
/* Basic Options */
"target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017','ES2018' or 'ESNEXT'. */,
"module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */,
"lib": [
"esnext",
"dom"
Expand Down

0 comments on commit e562326

Please sign in to comment.