cli: only build cjs to dist folder and set it as entrypoint

This commit is contained in:
Patrik Oldsberg
2020-03-06 15:59:26 +01:00
parent cb8a9c285d
commit 427ad9c242
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ const path = require('path');
// Figure out whether we're running inside the backstage repo or as an installed dependency
const isLocal = require('fs').existsSync(path.resolve(__dirname, '../src'));
if (!isLocal) {
require('../cjs');
require('../dist');
} else {
require('ts-node').register({
project: path.resolve(__dirname, '../tsconfig.json'),