Remove import of package.json as it was causing trouble with compilation

parent 10a570a3
...@@ -5,7 +5,11 @@ import { ICompilerResult } from '@rocket.chat/apps-compiler/definition'; ...@@ -5,7 +5,11 @@ import { ICompilerResult } from '@rocket.chat/apps-compiler/definition';
import { FolderDetails } from './folderDetails'; import { FolderDetails } from './folderDetails';
import packageInfo = require('../../package.json'); /* import packageInfo = require('../package.json'); */
const packageInfo = {
version: '1.7.0',
name: '@rocket.chat/apps-cli',
};
// tslint:disable-next-line:no-var-requires // tslint:disable-next-line:no-var-requires
const createRequire = require('module').createRequire; const createRequire = require('module').createRequire;
......
...@@ -4,7 +4,11 @@ import * as glob from 'glob'; ...@@ -4,7 +4,11 @@ import * as glob from 'glob';
import * as path from 'path'; import * as path from 'path';
import * as Yazl from 'yazl'; import * as Yazl from 'yazl';
import packageInfo = require('../../package.json'); /* import packageInfo = require('../package.json'); */
const packageInfo = {
version: '1.7.0',
name: '@rocket.chat/apps-cli',
};
import { FolderDetails } from './folderDetails'; import { FolderDetails } from './folderDetails';
......
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