Revert "Merge pull request #812 from GitTools/bug/prerelease"

This reverts commit a6b18fd71f.
This commit is contained in:
Artur
2023-03-11 04:32:23 +01:00
parent b73575fafe
commit 813383bdba
60 changed files with 63506 additions and 198014 deletions

View File

@@ -7,7 +7,7 @@ function getConfig(mode, agent, entry) {
entry: entry,
target: 'node',
mode: mode,
devtool: mode === 'development' ? 'inline-source-map' : false,
devtool: mode == 'development' ? 'inline-source-map' : false,
module: {
rules: [{
test: /\.tsx?$/,
@@ -43,10 +43,7 @@ function getConfig(mode, agent, entry) {
replace: 'let pkg = { version: "1.2.3" };'
}]
}])
],
experiments: {
topLevelAwait: true
}
]
}
}
@@ -65,12 +62,12 @@ const entryPoints = [
module.exports = (env) => {
const task = env.task || 'compile';
const agent = env.agent || 'mock';
const mode = task === 'compile' ? 'development' : 'production';
const mode = task == 'compile' ? 'development' : 'production';
const entry = {};
entryPoints.forEach(key => {
const resource = task === 'compile' ? `src/tasks/${key}.ts` : `dist/${agent}/${key}/bundle.js`;
const resource = task == 'compile' ? `src/tasks/${key}.ts` : `dist/${agent}/${key}/bundle.js`;
entry[key] = path.resolve(__dirname, resource);
});
return getConfig(mode, agent, entry);
};
};