diff --git a/test/fixtures/demo-app-esm/node_modules2/aliyun-egg/index.js b/test/fixtures/demo-app-esm/node_modules2/aliyun-egg/index.js new file mode 100644 index 00000000..dc41c309 --- /dev/null +++ b/test/fixtures/demo-app-esm/node_modules2/aliyun-egg/index.js @@ -0,0 +1,15 @@ +'use strict'; + +exports.startCluster = options => { + console.log('options: %j', options); + if (process.execArgv.length) { + console.log('process.execArgv:', process.execArgv); + } + console.log('NODE_ENV: %s', process.env.NODE_ENV); + + // make sure exit + setTimeout(function() { + console.log('exist by setTimeout'); + process.exit(0); + }, 3000); +}; diff --git a/test/fixtures/demo-app-esm/node_modules2/aliyun-egg/package.json b/test/fixtures/demo-app-esm/node_modules2/aliyun-egg/package.json new file mode 100644 index 00000000..4e36e661 --- /dev/null +++ b/test/fixtures/demo-app-esm/node_modules2/aliyun-egg/package.json @@ -0,0 +1,6 @@ +{ + "name": "aliyun-egg", + "dependencies": { + "egg": "*" + } +} diff --git a/test/fixtures/demo-app-esm/package.json b/test/fixtures/demo-app-esm/package.json new file mode 100644 index 00000000..0854654a --- /dev/null +++ b/test/fixtures/demo-app-esm/package.json @@ -0,0 +1,6 @@ +{ + "name": "demo-app", + "egg": { + "framework": "aliyun-egg" + } +}