Skip to content

Commit

Permalink
fix: Use cjs for rollup.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
neet committed Nov 3, 2022
1 parent f69603e commit 80cc322
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test:jest": "jest --coverage --config=jest.config.js",
"test:eslint": "eslint -c .eslintrc.json ./src/**/*.ts",
"test:spellcheck": "cspell '{src,examples}/**/*.{ts,tsx,js,json,md}'",
"build": "rollup -c rollup.config.mjs",
"build": "rollup -c rollup.config.js",
"prepublishOnly": "yarn run test && yarn run build",
"release": "standard-version",
"docs:build": "typedoc ./src/entrypoints/nodejs.ts && touch ./docs/.nojekyll"
Expand Down
14 changes: 7 additions & 7 deletions rollup.config.mjs → rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import commonjs from '@rollup/plugin-commonjs';
import json from '@rollup/plugin-json';
import autoExternal from 'rollup-plugin-auto-external';
import dts from 'rollup-plugin-dts';
import typescript from 'rollup-plugin-typescript2';
const commonjs = require('@rollup/plugin-commonjs');
const json = require('@rollup/plugin-json');
const autoExternal = require('rollup-plugin-auto-external');
const { default: dts } = require('rollup-plugin-dts');
const typescript = require('rollup-plugin-typescript2');

import packageJSON from './package.json' assert { type: 'json' };
const packageJSON = require('./package.json');

export default [
module.exports = [
{
input: './src/entrypoints/nodejs.ts',
output: {
Expand Down

0 comments on commit 80cc322

Please sign in to comment.