Skip to content

Commit

Permalink
Try specifying entry points for default model
Browse files Browse the repository at this point in the history
  • Loading branch information
thekevinscott committed Oct 5, 2023
1 parent 22d0ae4 commit 0c6cd2a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
9 changes: 3 additions & 6 deletions models/default-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -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/**/*",
Expand Down
2 changes: 2 additions & 0 deletions models/default-model/src/cjs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { default as DefaultModel, } from './index';
module.exports = DefaultModel; // eslint-disable-line
1 change: 1 addition & 0 deletions models/default-model/src/esm.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default as default, } from './index';
2 changes: 1 addition & 1 deletion test/integration/model/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0c6cd2a

Please sign in to comment.