Skip to content

Commit

Permalink
Fix build issues (#79)
Browse files Browse the repository at this point in the history
* Fix build issues

* Version bump
  • Loading branch information
ArtiomTr authored Apr 21, 2023
1 parent e09510f commit 14aae2a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 15 deletions.
26 changes: 26 additions & 0 deletions aqu.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
const sharedOpts = {
dtsBundleGeneratorOptions: {
libraries: {
importedLibraries: ['react'],
allowedTypesLibraries: [],
},
},
};

const entries = [
{
format: 'esm',
outfile: './dist/index.mjs',
declaration: 'none',
},
{
format: 'cjs',
cjsMode: 'development',
outfile: './dist/index.cjs',
},
];

module.exports = entries.map((entry) => ({
...entry,
sharedOpts,
}));
8 changes: 0 additions & 8 deletions aqu.config.json

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"name": "reactive-popups",
"version": "0.3.1",
"version": "0.3.2",
"description": "Easy popup management with React",
"files": [
"dist"
],
"main": "./dist/index.js",
"types": "./dist/reactive-popups.d.ts",
"module": "./dist/reactive-popups.esm.js",
"type": "commonjs",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"scripts": {
"build": "aqu build",
"start": "aqu watch",
Expand Down

0 comments on commit 14aae2a

Please sign in to comment.