Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

Commit

Permalink
".rpt2_cache" was moved to OS's temp directory. See:
Browse files Browse the repository at this point in the history
  • Loading branch information
mirismaili committed May 4, 2019
1 parent ede4ea2 commit da18c4f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ node_modules/
dist/
tsc-out/
tempst*
/.rpt2_cache/
/coverage/
*.iml
7 changes: 4 additions & 3 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import sourceMaps from 'rollup-plugin-sourcemaps'
import camelCase from 'lodash.camelcase'
import typescript from 'rollup-plugin-typescript2'
import json from 'rollup-plugin-json'
import { terser } from "rollup-plugin-terser"
import {terser} from "rollup-plugin-terser"
import tempDir from "temp-dir"

const pkg = require('./package.json')

Expand All @@ -27,8 +28,8 @@ export default {
plugins: [
// Allow json resolution
json(),
// Compile TypeScript files
typescript({useTsconfigDeclarationDir: true}),
// Compile TypeScript files. For `cacheRoot` see: https://github.com/ezolenko/rollup-plugin-typescript2/issues/34#issuecomment-332591290
typescript({useTsconfigDeclarationDir: true, cacheRoot: `${tempDir}/.rpt2_cache`}),
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
commonjs(),
// Allow node_modules resolution, so you can use 'external' to control
Expand Down

0 comments on commit da18c4f

Please sign in to comment.