Skip to content

Commit

Permalink
fix: fix type definitions build
Browse files Browse the repository at this point in the history
  • Loading branch information
rafamel committed Apr 4, 2021
1 parent b71b54a commit fada578
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import pkg from '../package.json';
import { into } from 'pipettes';

export const constants = {
bin: 'kpo',
file: 'kpo.tasks.js',
description: pkg.description || '',
version: pkg.version || 'Unknown',
record: { default: 'default' }
};
export const constants = into(
{ pkg: require('../package.json') },
({ pkg }) => ({
bin: 'kpo',
file: 'kpo.tasks.js',
description: pkg.description || '',
version: pkg.version || 'Unknown',
record: {
default: 'default'
}
})
);

0 comments on commit fada578

Please sign in to comment.