Skip to content

Commit

Permalink
fix npm
Browse files Browse the repository at this point in the history
  • Loading branch information
berndartmueller committed Aug 25, 2020
1 parent c394edc commit b371fad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "dist/index.js",
"module": "dist/index.es.js",
"browser": "dist/index.bundle.js",
"source": "src/virchual.ts",
"types": "dist/virchual.d.ts",
"source": "src/index.ts",
"types": "dist/index.d.ts",
"unpkg": "dist/index.bundle.js",
"files": [
"src",
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import bundleSize from 'rollup-plugin-bundle-size';
const isDevelopment = process.env.NODE_ENV === 'development';

export default {
input: 'src/virchual.ts', // our source file
input: 'src/index.ts', // our source file
output: [
{
file: pkg.main,
Expand Down
8 changes: 8 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Virchual } from './virchual';

export { Virchual };

// For CommonJS default export support
module.exports = Virchual;
module.exports.default = Virchual;
module.exports.__esModule = true;

0 comments on commit b371fad

Please sign in to comment.