81 Commits

Author SHA1 Message Date
Anton Gilgur
b44b069cb2
fix: force noEmitOnError: false (#338)
- `noEmitOnError: true` acts like `noEmit: true` when there is an error
  - this is problematic because it will then cause _all_ files to have
    `emitSkipped` set to `true`, which this plugin interprets as a fatal
    error
    - meaning it will treat the first file it finds as having a fatal
      error and then abort, but possibly without outputting any
      diagnostics what-so-ever as the file with the error in it may not
      yet have run through the `transform` hook
      - i.e. an initial file that imports an erroring file at some point
        in its import chain will cause rpt2 to abort, even if that
        initial file _itself_ has no type-check/diagnostic issues
        - bc TS does whole-program analysis after all

- this has only been reported as an issue once so far, probably because
  it defaults to `false` in TS and, as such, is rarely used:
  https://www.typescriptlang.org/tsconfig#noEmitOnError
  - we usually have the opposite issue, people trying to set it to
    `false` (i.e. the default) because they don't realize the
    `abortOnError` option exists

- add `noEmitOnError: false` to the forced options list and tests too

- add it to the docs on what tsconfig options are forced
  - and add a reference to the issue like the existing options
  - also reference `abortOnError` since they're commonly associated with
    each other and that plugin option is often missed (per above)
- briefly explain that `noEmit` and `noEmitOnError` are `false` because
  Rollup controls emit settings in the context of this plugin, instead
  of `tsc` etc
  - should probably watch out for when new emit settings are added to
    TS, as we may want to force most with the same reasoning
2022-06-01 14:42:46 -06:00
Anton Gilgur
e28d2f08b9
docs: split off a CONTRIBUTING.md and improve formatting, grammar, links (#313)
* docs: split off a CONTRIBUTING.md from the README

- condenses the README a bit and uses the standard CONTRIBUTING.md file
  - it's a file I often look for when filing an issue or creating a PR
  - leaves the section still in the README so that users (esp. on NPM)
    will know to go there if they're not aware of that convention

- GitHub also now tells users to read the CONTRIBUTING.md of a repo when
  filing issues or creating PRs, so hopefully this helps point more
  users in the right direction as well

* docs: improve formatting, grammar, and links in CONTRIBUTING.md

- slightly change reference to GH Issue Tracker

- use oxford commas everywhere for clarity
- missing "the" in a few places
- more minor grammatical fixes (missing space, semicolon vs. comma, etc)

- fix: "npm_modules" -> "`node_modules`"
- fix: "npm lint" -> "npm run lint", "npm build" -> "npm run build",
  "npm build-self" -> "npm run build-self"
  - short-hand works in Yarn and for some pre-defined Node scripts, like
    `start` and `test`, but the rest need `run`
- "typescript" -> "TS" (prefer proper "TypeScript" or just "TS")
- use backticks monospace/code formatting where appropriate

- link to GitHub's official docs on forking and making PRs
  - also use the word "standard" instead of "normal" as it's more
    inclusive and reflective that this is a convention/standard
- link to editorconfig site
- link directly to `.editorconfig` with a relative link as well
- reword portion about PR checks as they do run `build` and `build-self`
  nowadays (not sure how old this text is)

- use an ordered list (instead of unordered) for the testing process
  as this is meant to be done in order
2022-05-05 09:25:43 -06:00
Anton Gilgur
462442d6f5
docs: clarify the TS option's defaults (#316)
- "latest 2.x" is no longer accurate and quite outdated (we're on 4.x
  now), so just say it's the peerDep instead
  - @rollup/plugin-typescript calls the default a peerDep too:
    https://github.com/rollup/plugins/tree/master/packages/typescript#typescript

- be more specific that you can pass in a different version or fork of
  TS (like `ttypescript`) through this option
  - follow-up to 8ec49c78f523687deaf6816bc2ea320f16e325c7

- auto-trim some whitespace-only lines
  - my editor does this automatically, and most of the README has
    trimmed whitespace anyway, so this keeps it consistent
2022-05-04 10:16:45 -06:00
Anton Gilgur
971c816bea
docs: update Compatibility section with new names and links (#315)
- `rollup-plugin-` -> `@rollup/plugin-`
  - just less confusion for newer users who may not be aware of the
    previous naming. and up-to-date / current naming anyway

- clarify grammar in `@rollup/plugin-babel` to be a bit more specific
  - remove part about what "it claims", no need for negative tone
- add a link to the Babel plugin's docs for its default extensions
- comment out ellipsis in code samples (closer to valid code)
2022-05-04 10:12:47 -06:00
Anton Gilgur
00bf86f156
docs: standardize how issues are referenced (#317)
- fix: missing `#` in `outDir` reference ("83")

- use `org/repo#num` consistently
  - previously was `Microsoft/TypeScript/issues/num` or
    `rollup/issues/num` inconsistently
  - this is how GitHub displays references to other repos in comments as
    well, so consistent with the rest of GH too
  - links haven't changed, just the text of the them

- auto-trim some whitespace-only lines
  - my editor does this automatically, and most of the README has
    trimmed whitespace anyway, so this keeps it consistent
2022-05-04 10:09:38 -06:00
Anton Gilgur
c219228dd6
docs: add link to NPM in monthly downloads badge (#318)
- previously it just linked to the image itself; better to link to the
  source of the stats which is NPM
  - duplicates the other badge's link, but nbd, better than linking to
    an image imo
2022-05-04 10:08:27 -06:00
Anton Gilgur
e4b5880aa6
fix(docs): _.merge doesn't concat arrays (#314)
- it's a deep merge that merges them by index
- the rest of the docs are accurate, just this one mention was incorrect

- eventually should move to shallow merge/replace arrays to better
  reflect how `tsconfig` `extends` works, but just fix the docs for now
2022-05-04 10:07:48 -06:00
Eugene Zolenko
4e9f8fff08
- cleaning up badges 2022-02-01 16:54:38 -07:00
Eugene Zolenko
d8c4cccb33
Update README.md 2021-02-19 10:14:10 -07:00
Eugene Zolenko
8ec49c78f5
Update README.md
#252
2021-01-20 13:31:10 -07:00
Brandon Chinn
91846974dc
Add tslib to installation instructions (#253)
* Add tslib to installation instructions for yarn
2020-11-25 12:56:30 -07:00
Anton Gilgur
ec0568ba2c (fix): declaration maps should have correct sources
- previously, declarationDir was set to cwd if useTsconfigDeclarationDir
  wasn't true, however, declarations aren't output to cwd, but to
  Rollup's output destination, so this was incorrect
  - instead, don't set declarationDir, which defaults it to outDir,
    which is currently set to a placeholder
    - previously, it rewrote declarations to output to Rollup's dest
      from cwd, now rewrite from outDir placeholder instead
  - and add a rewrite of sources to match relative path from Rollup's
    output dest instead of outDir placeholder

- also change the one line in the docs that says it'll be
  `process.cwd()`; every other reference says it'll be the output dest
2020-09-30 19:46:37 -04:00
Eugene Zolenko
039bac46ec
CI status badge 2020-03-27 00:07:51 -06:00
Anton Gilgur
0caa1c427f
(docs): async plugins are now supported out-of-the-box (#205)
- so remove that reference to objectHashIgnoreUnknownHack

- also be more specific about what cases objectHashIgnoreUnknownHack
  might be needed for
  - asyncgeneratorfunctions are still one off the top of my head, but
    there are certainly others it just won't know about, including
    future syntaxes
2020-02-13 16:42:04 -07:00
Eugene Zolenko
7fd52b7210 - updating readme 2020-02-11 16:10:17 -07:00
chocolateboy
947da2523c Fix syntax error in transformer example (#195) 2019-12-04 15:15:55 -07:00
chencheng (云谦)
4217346054 feat: support options.cwd (#197) 2019-12-03 10:20:41 -07:00
Eugene Zolenko
d6359af2b0
Update README.md 2019-11-13 18:42:51 -07:00
Eugene Zolenko
bc5b419c79 - merging #190
- readme and tslint updates
2019-11-05 10:34:39 -07:00
Eugene Zolenko
330a0ce804 - reverting #181 2019-10-29 15:28:06 -06:00
Eugene Zolenko
6cfddd4f74 - updating package.json for minimum rollup version
- readme
- fix for linter warnings
- package version
2019-10-28 10:51:27 -06:00
Eugene Zolenko
c20a19fe34 - updating readme and package version 2019-10-28 10:30:50 -06:00
Eugene Zolenko
07d9a9c0dc
Update README.md 2019-09-05 15:14:14 -06:00
Nick McCurdy
ffda2e539b Move cache directory to node_modules (#167)
* Move cache directory to node_modules

* Use find-cache-dir to find .cache in node_modules
2019-08-28 17:26:05 -06:00
EqualMa
1404c73a64 Fix extension name in babel config (#158)
An extension name should start with a `.` in the `extensions` option of babel config. (As described here: https://babeljs.io/docs/en/babel-core#default-extensions)
2019-07-02 10:29:16 -06:00
Eugene Zolenko
313684c1da
Update README.md 2019-06-11 10:23:24 -06:00
Eugene Zolenko
1c3a093bcb
- removing extra options from babel plugin example
#108
2019-05-13 09:47:50 -06:00
Eugene Zolenko
6053494f60
- removing unresponsive badge 2019-05-10 15:11:05 -06:00
Eugene Zolenko
28ae2ccff7
Documenting workaround for #108 2019-05-10 15:10:19 -06:00
ezolenko
518c8860b7 - updating readme #143 2019-03-13 09:02:25 -06:00
Eugene Zolenko
ec8f9099d6
Clarifying readme
#66
2019-01-15 13:33:59 -07:00
Eugene Zolenko
6b0225a7de - redoing switch to generateBundle (#126 #127 #128)
- using rollup's own types
- min rollup bumped to 0.68
- updating dependencies
- package version 0.19
2019-01-04 15:52:31 -07:00
Eugene Zolenko
7d6dd466f5
Contributing section in readme 2019-01-04 10:42:14 -07:00
Eugene Zolenko
3a6079c1ec - using allowNonTsExtensions to let other plugins generate typescript #111 2018-10-30 10:23:22 -06:00
Luca Ban
4d8c85f098 Add installation (#116) 2018-09-27 11:28:04 -06:00
Eugene Zolenko
3b46e8d599 - object-hash hack optional #105 2018-08-14 11:01:28 -06:00
Eugene Zolenko
b2cb064766
- updating libraries.io shield 2018-07-30 10:29:58 -06:00
Eugene Zolenko
0462d1d0f2
- switching dependencies shield to libraries.io 2018-07-23 14:31:13 -06:00
Eugene Zolenko
e3a382fad0
- reducing shields maxage 2018-07-20 10:11:50 -06:00
Eugene Zolenko
fe0490c807 - attempting to achieve line ending sanity 2018-07-05 14:59:54 -06:00
Eugene Zolenko
c86e07bc0f - fix for invisible declaration files, #95 2018-07-05 14:39:45 -06:00
Eugene Zolenko
d289d3f725 - outDir placeholder other than cwd, fix for #83 2018-06-06 14:51:23 -06:00
Eugene Zolenko
7b939304ae - new transformers interface #76 2018-04-27 17:16:38 -06:00
ezolenko
6b41d6758f - #71 forcing inlineSourceMap to false 2018-04-13 23:31:25 -06:00
Eugene Zolenko
9dd2f61b29
Transformers (#74) 2018-04-13 23:18:24 -06:00
Eugene Zolenko
2e3f4bc0c2
- readme update for #66 2018-04-04 14:43:08 -06:00
Dominik Moritz
d6908f132f Update README.md (#73) 2018-04-04 11:13:09 -06:00
ezolenko
7332077918 - relaxing module overrides to allow for ESNext #54 2018-03-06 18:34:12 -07:00
Eugene Zolenko
b3e32e51a9
- tsconfigDefaults for #53 (#55) 2018-02-01 20:37:53 -07:00
Eugene Zolenko
8f17a0a120 - changing noEmitHelpers override to false (#48) 2018-01-10 10:35:01 -07:00