BREAKING CHANGE(core): switch to esm

This commit is contained in:
2022-07-28 22:35:16 +02:00
parent eda415893c
commit f12a92660f
15 changed files with 14221 additions and 1251 deletions

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartspawn',
version: '3.0.0',
description: 'smart subprocess handling'
}

View File

@ -1,4 +1,4 @@
export * from './smartspawn.classes.threadsimple';
export * from './smartspawn.wrap';
export * from './smartspawn.classes.threadsimple.js';
export * from './smartspawn.wrap.js';
export * from 'threads';

View File

@ -1,4 +1,4 @@
import * as plugins from './smartspawn.plugins';
import * as plugins from './smartspawn.plugins.js';
import * as smartpromise from '@pushrocks/smartpromise';
import * as childProcess from 'child_process';

View File

@ -1,4 +1,4 @@
import * as plugins from './smartspawn.plugins';
import * as plugins from './smartspawn.plugins.js';
export const packageBase = plugins.path.join(__dirname, '../');
export const typescriptwrapJs = plugins.path.join(packageBase, 'assets/typescriptwrap.js');

View File

@ -1,5 +1,5 @@
import * as path from 'path';
const threads = require('threads');
import * as threads from 'threads';
import * as smartpromise from '@pushrocks/smartpromise';
export { path, smartpromise, threads };