Skip to content

Commit

Permalink
Prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmurphy committed Jan 26, 2020
1 parent 3bf2b6d commit 16ed48c
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 58 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.7.0] - 2019-01-26

### Added

- 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`.

### Fixed

- Thanks to an update to `rollup-plugin-dts`, type generation in scenarios where there are local declaration files works again.

### Changed

- The new monorepo versions of the Rollup plugins have been swapped in.
- `typebundle` is now building itself with a `nodeTarget` of `10`.

## [0.6.0] - 2019-10-04

### Changed
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ Typebundle's primary interface is on the command line. The only required positio
#### A single source file

```sh
typebundle src/index.ts --output dist --target 8
typebundle src/index.ts --output dist --target 10
```

#### Multiple source files

```sh
typebundle "src/{cli,index}.ts" --output dist --target 8
typebundle "src/{cli,index}.ts" --output dist --target 10
```

#### Run in watch mode

```sh
typebundle src/index.ts --output dist --target 8 --watch
typebundle src/index.ts --output dist --target 10 --watch
```

## Options
Expand Down
121 changes: 79 additions & 42 deletions package-lock.json

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

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
],
"scripts": {
"build": "npm run -s build:babel && npm run -s build:self",
"build:babel": "babel-node --extensions \".ts\" src/cli.ts \"src/{cli,index}.ts\" --target=8 --output=dist --compress --types=types",
"build:self": "node dist/cli.js \"src/{cli,index}.ts\" --target=8 --output=dist --compress --types=types",
"build:babel": "babel-node --extensions \".ts\" src/cli.ts \"src/{cli,index}.ts\" --target=10 --output=dist --compress --types=types",
"build:self": "node dist/cli.js \"src/{cli,index}.ts\" --target=10 --output=dist --compress --types=types",
"prerelease": "npm run build",
"release": "np --no-yarn",
"test": "echo \"Error: no test specified\" && exit 0",
Expand All @@ -42,15 +42,15 @@
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.8.3",
"@babel/preset-typescript": "^7.6.0",
"@rollup/plugin-commonjs": "^11.0.1",
"@rollup/plugin-json": "^4.0.1",
"@rollup/plugin-node-resolve": "^7.0.0",
"builtin-modules": "^3.1.0",
"fs-extra": "^8.1.0",
"mri": "^1.1.4",
"rollup": "^1.27.14",
"rollup": "^1.29.1",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-dts": "^1.2.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-dts": "^1.2.1",
"rollup-plugin-terser": "^5.1.2",
"tiny-glob": "^0.2.6",
"typescript": "^3.7.4"
Expand All @@ -60,7 +60,7 @@
"@newswire/prettier-config": "^2.0.0",
"@types/fs-extra": "^8.0.1",
"@types/mri": "^1.1.0",
"@types/node": "^13.1.8",
"@types/node": "^13.5.0",
"np": "^5.1.2",
"prettier": "^1.18.2"
},
Expand Down
9 changes: 5 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import {
RollupWatchOptions,
} from 'rollup';
import babel from 'rollup-plugin-babel';
import commonjs from 'rollup-plugin-commonjs';
import commonjs from '@rollup/plugin-commonjs';
import dts from 'rollup-plugin-dts';
import json from 'rollup-plugin-json';
import nodeResolve from 'rollup-plugin-node-resolve';
import json from '@rollup/plugin-json';
import nodeResolve from '@rollup/plugin-node-resolve';
import { terser } from 'rollup-plugin-terser';
import glob from 'tiny-glob';

Expand Down Expand Up @@ -98,8 +98,9 @@ async function createRollupConfig({
}),
compress &&
terser({
output: { comments: false },
output: { ecma: 2017, comments: false },
compress: {
ecma: 2017,
keep_infinity: true,
pure_getters: true,
passes: 10,
Expand Down
1 change: 0 additions & 1 deletion src/vendor.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
declare module '@babel/preset-env';
declare module '@babel/preset-typescript';
declare module 'rollup-plugin-babel';
declare module 'rollup-plugin-json';

0 comments on commit 16ed48c

Please sign in to comment.