@o3r/schematics 9.1.0-alpha.44 → 9.1.0-alpha.46

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/schematics",
3
- "version": "9.1.0-alpha.44",
3
+ "version": "9.1.0-alpha.46",
4
4
  "description": "Schematics module of the Otter framework",
5
5
  "main": "./src/index.js",
6
6
  "keywords": [
@@ -58,9 +58,9 @@
58
58
  "@nx/jest": "~16.6.0",
59
59
  "@nx/js": "~16.6.0",
60
60
  "@nx/linter": "~16.6.0",
61
- "@o3r/build-helpers": "^9.1.0-alpha.44",
62
- "@o3r/dev-tools": "^9.1.0-alpha.44",
63
- "@o3r/eslint-plugin": "^9.1.0-alpha.44",
61
+ "@o3r/build-helpers": "^9.1.0-alpha.46",
62
+ "@o3r/dev-tools": "^9.1.0-alpha.46",
63
+ "@o3r/eslint-plugin": "^9.1.0-alpha.46",
64
64
  "@schematics/angular": "~16.1.6",
65
65
  "@types/jest": "~29.5.2",
66
66
  "@types/node": "^18.0.0",
@@ -12,6 +12,7 @@ export * from './template-property.helper';
12
12
  export * from './matching-peers';
13
13
  export * from './package-manager-runner';
14
14
  export * from './package-version';
15
+ export * from './question';
15
16
  export * from './monorepo';
16
17
  export * from './update-imports';
17
18
  export * from './collection';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC"}
@@ -15,6 +15,7 @@ tslib_1.__exportStar(require("./template-property.helper"), exports);
15
15
  tslib_1.__exportStar(require("./matching-peers"), exports);
16
16
  tslib_1.__exportStar(require("./package-manager-runner"), exports);
17
17
  tslib_1.__exportStar(require("./package-version"), exports);
18
+ tslib_1.__exportStar(require("./question"), exports);
18
19
  tslib_1.__exportStar(require("./monorepo"), exports);
19
20
  tslib_1.__exportStar(require("./update-imports"), exports);
20
21
  tslib_1.__exportStar(require("./collection"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,sDAA4B;AAC5B,yDAA+B;AAC/B,sDAA4B;AAC5B,uDAA6B;AAC7B,sDAA4B;AAC5B,oDAA0B;AAC1B,oDAA0B;AAC1B,mDAAyB;AACzB,sDAA4B;AAC5B,qEAA2C;AAC3C,2DAAiC;AACjC,mEAAyC;AACzC,4DAAkC;AAClC,qDAA2B;AAC3B,2DAAiC;AACjC,uDAA6B;AAC7B,iDAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utility/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,sDAA4B;AAC5B,yDAA+B;AAC/B,sDAA4B;AAC5B,uDAA6B;AAC7B,sDAA4B;AAC5B,oDAA0B;AAC1B,oDAA0B;AAC1B,mDAAyB;AACzB,sDAA4B;AAC5B,qEAA2C;AAC3C,2DAAiC;AACjC,mEAAyC;AACzC,4DAAkC;AAClC,qDAA2B;AAC3B,qDAA2B;AAC3B,2DAAiC;AACjC,uDAA6B;AAC7B,iDAAuB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Display a question in the terminal and wait for the user answer
3
+ *
4
+ * @param question Question to ask to the user
5
+ * @returns user's answer
6
+ */
7
+ export declare const askUserInput: (question: string) => Promise<string>;
8
+ //# sourceMappingURL=question.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../src/utility/question.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,YAAY,aAAoB,MAAM,KAAG,QAAQ,MAAM,CAYnE,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.askUserInput = void 0;
4
+ const node_readline_1 = require("node:readline");
5
+ /**
6
+ * Display a question in the terminal and wait for the user answer
7
+ *
8
+ * @param question Question to ask to the user
9
+ * @returns user's answer
10
+ */
11
+ const askUserInput = async (question) => {
12
+ const readline = (0, node_readline_1.createInterface)({
13
+ terminal: true,
14
+ input: process.stdin,
15
+ output: process.stdout
16
+ });
17
+ const askQuestion = () => new Promise((resolve) => {
18
+ readline.question(`${question} `, resolve);
19
+ });
20
+ const answer = await askQuestion();
21
+ readline.close();
22
+ return answer;
23
+ };
24
+ exports.askUserInput = askUserInput;
25
+ //# sourceMappingURL=question.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question.js","sourceRoot":"","sources":["../../../src/utility/question.ts"],"names":[],"mappings":";;;AAAA,iDAAgD;AAEhD;;;;;GAKG;AACI,MAAM,YAAY,GAAG,KAAK,EAAE,QAAgB,EAAmB,EAAE;IACtE,MAAM,QAAQ,GAAG,IAAA,+BAAe,EAAC;QAC/B,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,OAAO,CAAC,KAAK;QACpB,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,GAAG,EAAE,CAAC,IAAI,OAAO,CAAS,CAAC,OAAO,EAAE,EAAE;QACxD,QAAQ,CAAC,QAAQ,CAAC,GAAG,QAAQ,GAAG,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,MAAM,WAAW,EAAE,CAAC;IACnC,QAAQ,CAAC,KAAK,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAZW,QAAA,YAAY,gBAYvB"}