1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const stages_1 = require("./stages");
|
4 | function infer(app) {
|
5 | const inferredStage = stages_1.inferrableStages.find(stage => stage.inferRegex.test(app));
|
6 | if (inferredStage) {
|
7 | return [app.replace(inferredStage.inferRegex, ''), inferredStage.name];
|
8 | }
|
9 | return [app, 'production'];
|
10 | }
|
11 | exports.default = infer;
|