Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"compile": "tsc",
"postcompile": "npm run build:cjs",
"build:cjs": "rollup -c",
"postbuild:cjs": "node scripts/replace-legacy-export.cjs",
"prepare": "npm run compile"
},
"repository": {
Expand Down Expand Up @@ -65,6 +64,7 @@
"serve": "^11.3.2",
"standardx": "^5.0.0",
"start-server-and-test": "^1.11.2",
"ts-transform-default-export": "^1.0.2",
"typescript": "^4.0.0"
},
"files": [
Expand Down
7 changes: 6 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ts from '@wessberg/rollup-plugin-ts'
import transformDefaultExport from 'ts-transform-default-export'

const output = {
format: 'cjs',
Expand All @@ -12,6 +13,10 @@ export default {
input: './lib/index.ts',
output,
plugins: [
ts({ /* options */ })
ts({
transformers: ({ program }) => ({
afterDeclarations: transformDefaultExport(program)
})
})
]
}
11 changes: 0 additions & 11 deletions scripts/replace-legacy-export.cjs

This file was deleted.