Skip to content

Commit

Permalink
add test/fixtures/demo-app-esm
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 27, 2024
1 parent 961eb75 commit 029a9d0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/fixtures/demo-app-esm/node_modules2/aliyun-egg/index.js
Original file line number Diff line number Diff line change
@@ -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);
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "aliyun-egg",
"dependencies": {
"egg": "*"
}
}
6 changes: 6 additions & 0 deletions test/fixtures/demo-app-esm/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "demo-app",
"egg": {
"framework": "aliyun-egg"
}
}

0 comments on commit 029a9d0

Please sign in to comment.