1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-12-27 17:18:04 +01:00

formatting

This commit is contained in:
Kyle Spearrin 2018-01-06 10:23:16 -05:00
parent e314aa1651
commit a26fbbc6b1
2 changed files with 26 additions and 24 deletions

View File

@ -2,7 +2,9 @@
"name": "@bitwarden/jslib", "name": "@bitwarden/jslib",
"version": "0.0.11", "version": "0.0.11",
"description": "Common code used across bitwarden JavaScript projects.", "description": "Common code used across bitwarden JavaScript projects.",
"keywords": [ "bitwarden" ], "keywords": [
"bitwarden"
],
"main": "dist/index.umd.js", "main": "dist/index.umd.js",
"module": "dist/index.es5.js", "module": "dist/index.es5.js",
"typings": "dist/types/index.d.ts", "typings": "dist/types/index.d.ts",
@ -15,7 +17,7 @@
}, },
"scripts": { "scripts": {
"lint": "tslint 'src/**/*.ts'", "lint": "tslint 'src/**/*.ts'",
"prebuild": "rimraf dist", "prebuild": "rimraf dist/**/*",
"build": "tsc && tsc --module commonjs --outDir dist/lib && rollup -c rollup.config.ts && typedoc --out dist/docs --target es6 --theme minimal --mode file src", "build": "tsc && tsc --module commonjs --outDir dist/lib && rollup -c rollup.config.ts && typedoc --out dist/docs --target es6 --theme minimal --mode file src",
"start": "concurrently \"tsc -w\" \"rollup -c rollup.config.ts -w\"" "start": "concurrently \"tsc -w\" \"rollup -c rollup.config.ts -w\""
}, },

View File

@ -5,7 +5,6 @@ import resolve from 'rollup-plugin-node-resolve';
import sourceMaps from 'rollup-plugin-sourcemaps'; import sourceMaps from 'rollup-plugin-sourcemaps';
const pkg = require('./package.json'); const pkg = require('./package.json');
const libraryName = 'index'; const libraryName = 'index';
export default { export default {
@ -23,6 +22,7 @@ export default {
plugins: [ plugins: [
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs) // Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
commonjs(), commonjs(),
// Allow node_modules resolution, so you can use 'external' to control // Allow node_modules resolution, so you can use 'external' to control
// which external modules to include in the bundle // which external modules to include in the bundle
// https://github.com/rollup/rollup-plugin-node-resolve#usage // https://github.com/rollup/rollup-plugin-node-resolve#usage