Commit dc4993b3 authored by rockyl's avatar rockyl

alienlib -> @alienlib

parent 82f2a683
...@@ -5,6 +5,7 @@ const rollup = require('rollup'); ...@@ -5,6 +5,7 @@ const rollup = require('rollup');
const resolve = require('rollup-plugin-node-resolve'); const resolve = require('rollup-plugin-node-resolve');
const typescriptPlugin = require('./rollup-plugin-typescript'); const typescriptPlugin = require('./rollup-plugin-typescript');
const typescript = require('typescript'); const typescript = require('typescript');
const rollupPluginTypescriptPathMapping = require('rollup-plugin-typescript-path-mapping');
const {uglify} = require('rollup-plugin-uglify'); const {uglify} = require('rollup-plugin-uglify');
const commonjs = require('rollup-plugin-commonjs'); const commonjs = require('rollup-plugin-commonjs');
const glob = require('glob'); const glob = require('glob');
...@@ -41,6 +42,7 @@ export class RollupCompilePlugin implements plugins.Command { ...@@ -41,6 +42,7 @@ export class RollupCompilePlugin implements plugins.Command {
}), }),
resolve(), resolve(),
commonjs(), commonjs(),
rollupPluginTypescriptPathMapping({tsconfig: true}),
]; ];
if (!debugMode) { if (!debugMode) {
...@@ -95,7 +97,7 @@ export class RollupCompilePlugin implements plugins.Command { ...@@ -95,7 +97,7 @@ export class RollupCompilePlugin implements plugins.Command {
'bundle.min.js'; 'bundle.min.js';
let sourceCode = code; let sourceCode = code;
if(!debugMode){ if (!debugMode) {
sourceCode = 'RELEASE=true;DEBUG=false;' + sourceCode; sourceCode = 'RELEASE=true;DEBUG=false;' + sourceCode;
} }
if (map) { if (map) {
......
...@@ -12,7 +12,13 @@ ...@@ -12,7 +12,13 @@
"es5", "es5",
"dom", "dom",
"es2015.promise" "es2015.promise"
] ],
"baseUrl": "./",
"paths": {
"@alienlib/*": ["src/alienlib-cjs/*"]
},
"outDir": "dist",
"rootDir": "src"
}, },
"exclude": [ "exclude": [
"node_modules", "node_modules",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment