Skip to content

Commit 16ed48c

Browse files
committed
Prep for release
1 parent 3bf2b6d commit 16ed48c

File tree

6 files changed

+110
-58
lines changed

6 files changed

+110
-58
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [0.7.0] - 2019-01-26
11+
12+
### Added
13+
14+
- Terser is now told to compress and output with `ES2017` in mind. This seems like a safe level to be at because Node v10 supports nearly all features up to `ES2017`.
15+
16+
### Fixed
17+
18+
- Thanks to an update to `rollup-plugin-dts`, type generation in scenarios where there are local declaration files works again.
19+
20+
### Changed
21+
22+
- The new monorepo versions of the Rollup plugins have been swapped in.
23+
- `typebundle` is now building itself with a `nodeTarget` of `10`.
24+
1025
## [0.6.0] - 2019-10-04
1126

1227
### Changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,19 @@ Typebundle's primary interface is on the command line. The only required positio
1919
#### A single source file
2020

2121
```sh
22-
typebundle src/index.ts --output dist --target 8
22+
typebundle src/index.ts --output dist --target 10
2323
```
2424

2525
#### Multiple source files
2626

2727
```sh
28-
typebundle "src/{cli,index}.ts" --output dist --target 8
28+
typebundle "src/{cli,index}.ts" --output dist --target 10
2929
```
3030

3131
#### Run in watch mode
3232

3333
```sh
34-
typebundle src/index.ts --output dist --target 8 --watch
34+
typebundle src/index.ts --output dist --target 10 --watch
3535
```
3636

3737
## Options

package-lock.json

Lines changed: 79 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
],
1515
"scripts": {
1616
"build": "npm run -s build:babel && npm run -s build:self",
17-
"build:babel": "babel-node --extensions \".ts\" src/cli.ts \"src/{cli,index}.ts\" --target=8 --output=dist --compress --types=types",
18-
"build:self": "node dist/cli.js \"src/{cli,index}.ts\" --target=8 --output=dist --compress --types=types",
17+
"build:babel": "babel-node --extensions \".ts\" src/cli.ts \"src/{cli,index}.ts\" --target=10 --output=dist --compress --types=types",
18+
"build:self": "node dist/cli.js \"src/{cli,index}.ts\" --target=10 --output=dist --compress --types=types",
1919
"prerelease": "npm run build",
2020
"release": "np --no-yarn",
2121
"test": "echo \"Error: no test specified\" && exit 0",
@@ -42,15 +42,15 @@
4242
"@babel/core": "^7.6.4",
4343
"@babel/preset-env": "^7.8.3",
4444
"@babel/preset-typescript": "^7.6.0",
45+
"@rollup/plugin-commonjs": "^11.0.1",
46+
"@rollup/plugin-json": "^4.0.1",
47+
"@rollup/plugin-node-resolve": "^7.0.0",
4548
"builtin-modules": "^3.1.0",
4649
"fs-extra": "^8.1.0",
4750
"mri": "^1.1.4",
48-
"rollup": "^1.27.14",
51+
"rollup": "^1.29.1",
4952
"rollup-plugin-babel": "^4.3.3",
50-
"rollup-plugin-commonjs": "^10.1.0",
51-
"rollup-plugin-dts": "^1.2.0",
52-
"rollup-plugin-json": "^4.0.0",
53-
"rollup-plugin-node-resolve": "^5.2.0",
53+
"rollup-plugin-dts": "^1.2.1",
5454
"rollup-plugin-terser": "^5.1.2",
5555
"tiny-glob": "^0.2.6",
5656
"typescript": "^3.7.4"
@@ -60,7 +60,7 @@
6060
"@newswire/prettier-config": "^2.0.0",
6161
"@types/fs-extra": "^8.0.1",
6262
"@types/mri": "^1.1.0",
63-
"@types/node": "^13.1.8",
63+
"@types/node": "^13.5.0",
6464
"np": "^5.1.2",
6565
"prettier": "^1.18.2"
6666
},

src/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import {
1515
RollupWatchOptions,
1616
} from 'rollup';
1717
import babel from 'rollup-plugin-babel';
18-
import commonjs from 'rollup-plugin-commonjs';
18+
import commonjs from '@rollup/plugin-commonjs';
1919
import dts from 'rollup-plugin-dts';
20-
import json from 'rollup-plugin-json';
21-
import nodeResolve from 'rollup-plugin-node-resolve';
20+
import json from '@rollup/plugin-json';
21+
import nodeResolve from '@rollup/plugin-node-resolve';
2222
import { terser } from 'rollup-plugin-terser';
2323
import glob from 'tiny-glob';
2424

@@ -98,8 +98,9 @@ async function createRollupConfig({
9898
}),
9999
compress &&
100100
terser({
101-
output: { comments: false },
101+
output: { ecma: 2017, comments: false },
102102
compress: {
103+
ecma: 2017,
103104
keep_infinity: true,
104105
pure_getters: true,
105106
passes: 10,

src/vendor.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
declare module '@babel/preset-env';
22
declare module '@babel/preset-typescript';
33
declare module 'rollup-plugin-babel';
4-
declare module 'rollup-plugin-json';

0 commit comments

Comments
 (0)