mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
- formatting
This commit is contained in:
parent
388b5da6a1
commit
4a0de146fd
@ -26,7 +26,7 @@
|
||||
"prebuild": "rimraf dist/*",
|
||||
"build": "rollup -c",
|
||||
"build-self": "rollup -c rollup.config.self.js",
|
||||
"lint": "tslint -c ./tslint.json src/*.ts"
|
||||
"lint": "tslint -c ./tslint.json src/*.ts ./*.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"fs-extra": "^4.0.2",
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import resolve from 'rollup-plugin-node-resolve';
|
||||
import commonjs from 'rollup-plugin-commonjs';
|
||||
import replace from 'rollup-plugin-re';
|
||||
import resolve from "rollup-plugin-node-resolve";
|
||||
import commonjs from "rollup-plugin-commonjs";
|
||||
import replace from "rollup-plugin-re";
|
||||
|
||||
const pkg = require('./package.json');
|
||||
const pkg = require("./package.json");
|
||||
|
||||
export default {
|
||||
input: 'src/index.ts',
|
||||
input: "src/index.ts",
|
||||
|
||||
external: [
|
||||
"fs",
|
||||
@ -39,20 +39,20 @@ export default {
|
||||
}),
|
||||
],
|
||||
|
||||
banner: '/* eslint-disable */',
|
||||
banner: "/* eslint-disable */",
|
||||
|
||||
output: [
|
||||
{
|
||||
format: 'cjs',
|
||||
file: pkg.main
|
||||
format: "cjs",
|
||||
file: pkg.main,
|
||||
},
|
||||
{
|
||||
format: 'es',
|
||||
file: pkg.module
|
||||
format: "es",
|
||||
file: pkg.module,
|
||||
},
|
||||
{
|
||||
format: 'es',
|
||||
file: 'build-self/' + pkg.module
|
||||
}
|
||||
]
|
||||
format: "es",
|
||||
file: "build-self/" + pkg.module,
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import ts from 'rollup-plugin-typescript2';
|
||||
import ts from "rollup-plugin-typescript2";
|
||||
|
||||
import config from "./rollup.config.base"
|
||||
import config from "./rollup.config.base";
|
||||
|
||||
config.plugins.push(ts({ verbosity: 2, abortOnError: false }));
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import ts from './build-self/dist/rollup-plugin-typescript2.es';
|
||||
import ts from "./build-self/dist/rollup-plugin-typescript2.es";
|
||||
|
||||
import config from "./rollup.config.base"
|
||||
import config from "./rollup.config.base";
|
||||
|
||||
config.plugins.push(ts({ verbosity: 2, abortOnError: false }));
|
||||
|
||||
|
||||
@ -1,4 +1,12 @@
|
||||
{
|
||||
"jsRules": {
|
||||
"object-literal-sort-keys": false,
|
||||
"one-line": [false],
|
||||
"curly": false,
|
||||
"no-console": [false],
|
||||
"max-line-length": [false],
|
||||
"indent": [true, "tabs"]
|
||||
},
|
||||
"extends" : [
|
||||
"tslint:recommended"
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user