File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- // This file was created by running mixmax-runner/scripts/migrate-module.sh
2
- // See mixmax-runner/scripts/unmigrate-module.sh for resetting this project
3
1
const semver = require ( 'semver' ) ;
4
2
5
3
let main ;
6
- if ( semver . lt ( process . version , '7.6.0' ) ) {
4
+ // We use optional chaining (?.), so we need to use the transpiled versions
5
+ // in node versions earlier than 14.0.0:
6
+ if ( semver . lt ( process . version , '14.0.0' ) ) {
7
7
main = require ( './dist/node/index.js' ) ;
8
8
} else {
9
9
main = require ( './src/index.js' ) ;
Original file line number Diff line number Diff line change 16
16
"lint" : " eslint ." ,
17
17
"prepublishOnly" : " npm run babelBuild && if [ \" $CI\" = '' ]; then node -p 'JSON.parse(process.env.npm_package_config_manualPublishMessage)'; exit 1; fi" ,
18
18
"semantic-release" : " SEMANTIC_COMMITLINT_SKIP=f4543f643bac890c627d538e6200c5f5a1d45ebc semantic-release" ,
19
- "test" : " DRIVER=mongoist jest && DRIVER=native jest"
19
+ "test" : " npm run babelBuild; DRIVER=mongoist jest && DRIVER=native jest"
20
20
},
21
21
"repository" : {
22
22
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments