diff --git a/models/default-model/package.json b/models/default-model/package.json index ad9ebb1de..2037cce3f 100644 --- a/models/default-model/package.json +++ b/models/default-model/package.json @@ -19,8 +19,8 @@ }, "exports": { ".": { - "require": "./dist/cjs/models/default-model/src/index.js", - "import": "./dist/esm/models/default-model/src/index.js" + "require": "./dist/cjs/models/default-model/src/cjs.js", + "import": "./dist/esm/models/default-model/src/esm.js" } }, "scripts": { @@ -30,10 +30,7 @@ "build": "wireit", "build:cjs": "wireit", "build:esm": "wireit", - "build:umd": "wireit", - "build:umd:tsc": "wireit", - "build:umd:rollup": "wireit", - "build:umd:uglify": "wireit" + "build:umd": "wireit" }, "files": [ "assets/**/*", diff --git a/models/default-model/src/cjs.ts b/models/default-model/src/cjs.ts new file mode 100644 index 000000000..4f48ee1ff --- /dev/null +++ b/models/default-model/src/cjs.ts @@ -0,0 +1,2 @@ +import { default as DefaultModel, } from './index'; +module.exports = DefaultModel; // eslint-disable-line diff --git a/models/default-model/src/esm.ts b/models/default-model/src/esm.ts new file mode 100644 index 000000000..00aed3bed --- /dev/null +++ b/models/default-model/src/esm.ts @@ -0,0 +1 @@ +export { default as default, } from './index'; diff --git a/test/integration/model/model.ts b/test/integration/model/model.ts index 870c639d6..5e33e2d47 100644 --- a/test/integration/model/model.ts +++ b/test/integration/model/model.ts @@ -25,7 +25,7 @@ const JEST_TIMEOUT = 60 * 1000 * 15 * 2; jest.setTimeout(JEST_TIMEOUT); jest.retryTimes(0); -const SPECIFIC_PACKAGE: string | undefined = 'default-model'; +const SPECIFIC_PACKAGE: string | undefined = undefined; const SPECIFIC_MODEL: string | undefined = undefined; console.log('***** PLATFORMS', PLATFORMS)