ti2 1.0.18 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli.js CHANGED
@@ -21,6 +21,7 @@ program.command('dbapp')
21
21
  )
22
22
  .action(async (integration, action) => {
23
23
  await migrateApp({ integrationId: integration, action });
24
+ process.exit(0);
24
25
  });
25
26
 
26
27
  program.command('db')
@@ -31,6 +32,7 @@ program.command('db')
31
32
  )
32
33
  .action(async action => {
33
34
  await migrate({ action });
35
+ process.exit(0);
34
36
  });
35
37
 
36
38
  program.parse();
@@ -159,7 +159,7 @@ const migrateApp = async ({ integrationId, action }) => {
159
159
  __dirname,
160
160
  '../',
161
161
  '../',
162
- `ti2-${integrationId}`,
162
+ integrationId,
163
163
  'migrations',
164
164
  );
165
165
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ti2",
3
- "version": "1.0.18",
3
+ "version": "1.0.21",
4
4
  "description": "Tourist Industry Exchange (TI2)",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/worker/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  const throng = require('throng');
2
2
  require('util').inspect.defaultOptions.depth = null;
3
- const fakePlugin = require('../test/plugin');
4
3
 
5
4
  const { queue, saveResult } = require('./queue');
6
5
 
@@ -35,6 +34,7 @@ const worker = ({ plugins: pluginsParam }) => (id, disconnect) => {
35
34
  console.log(`job ${jobId} > running ${pluginName}:${method} for ${userId}`);
36
35
  const plugins = await (async () => {
37
36
  if (inTesting) {
37
+ const fakePlugin = require('../test/plugin');
38
38
  return [...pluginsParam, await new fakePlugin({ name: pluginName })];
39
39
  }
40
40
  return pluginsParam;