@intlayer/cli 1.0.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/cli.cjs +1 -4
- package/dist/cjs/cli.cjs.map +1 -1
- package/dist/cjs/cli.d.ts +9 -2
- package/dist/esm/cli.d.mts +9 -2
- package/dist/esm/cli.mjs +1 -4
- package/dist/esm/cli.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @intlayer/cli
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`eb74c4a`](https://github.com/aypineau/intlayer/commit/eb74c4aa84b08b5f2dc1f8d13d91183328f4e285) Thanks [@aypineau](https://github.com/aypineau)! - Change transpilation using chokidar
|
|
8
|
+
|
|
9
|
+
## 1.1.0
|
|
10
|
+
|
|
3
11
|
## 1.0.1
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/cli.cjs
CHANGED
|
@@ -22,12 +22,9 @@ __export(cli_exports, {
|
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(cli_exports);
|
|
24
24
|
var import_commander = require("commander");
|
|
25
|
-
const setAPI = ({
|
|
25
|
+
const setAPI = ({ transpile, watch }) => {
|
|
26
26
|
const program = new import_commander.Command();
|
|
27
27
|
program.version("1.0.0").description("Intlayer CLI");
|
|
28
|
-
program.command("serve").description("Start the application").action(serve);
|
|
29
|
-
program.command("start").description("Start the application").action(serve);
|
|
30
|
-
program.command("dev").description("Start the application").action(serve);
|
|
31
28
|
program.command("build").description("Build the dictionaries").action(transpile);
|
|
32
29
|
program.command("transpile").description("Build the dictionaries").action(transpile);
|
|
33
30
|
program.command("watch").description("Build the dictionaries and watch for changes").action(watch);
|
package/dist/cjs/cli.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cli.ts"],"sourcesContent":["import { Command } from 'commander';\n\ntype ServeParams = {\n version: string;\n transpile: () => void;\n
|
|
1
|
+
{"version":3,"sources":["../../src/cli.ts"],"sourcesContent":["import { Command } from 'commander';\n\ntype ServeParams = {\n version: string;\n transpile: () => void;\n watch: () => void;\n};\n\n/**\n * Set the API for the CLI\n *\n * Example of commands:\n *\n * npm run dev\n * npm run transpile\n */\nexport const setAPI = ({ transpile, watch }: ServeParams): Command => {\n const program = new Command();\n\n program.version('1.0.0').description('Intlayer CLI');\n\n program\n .command('build')\n .description('Build the dictionaries')\n .action(transpile);\n program\n .command('transpile')\n .description('Build the dictionaries')\n .action(transpile);\n\n program\n .command('watch')\n .description('Build the dictionaries and watch for changes')\n .action(watch);\n\n program.parse(process.argv);\n\n return program;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAwB;AAgBjB,MAAM,SAAS,CAAC,EAAE,WAAW,MAAM,MAA4B;AACpE,QAAM,UAAU,IAAI,yBAAQ;AAE5B,UAAQ,QAAQ,OAAO,EAAE,YAAY,cAAc;AAEnD,UACG,QAAQ,OAAO,EACf,YAAY,wBAAwB,EACpC,OAAO,SAAS;AACnB,UACG,QAAQ,WAAW,EACnB,YAAY,wBAAwB,EACpC,OAAO,SAAS;AAEnB,UACG,QAAQ,OAAO,EACf,YAAY,8CAA8C,EAC1D,OAAO,KAAK;AAEf,UAAQ,MAAM,QAAQ,IAAI;AAE1B,SAAO;AACT;","names":[]}
|
package/dist/cjs/cli.d.ts
CHANGED
|
@@ -3,9 +3,16 @@ import { Command } from 'commander';
|
|
|
3
3
|
type ServeParams = {
|
|
4
4
|
version: string;
|
|
5
5
|
transpile: () => void;
|
|
6
|
-
serve: () => void;
|
|
7
6
|
watch: () => void;
|
|
8
7
|
};
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Set the API for the CLI
|
|
10
|
+
*
|
|
11
|
+
* Example of commands:
|
|
12
|
+
*
|
|
13
|
+
* npm run dev
|
|
14
|
+
* npm run transpile
|
|
15
|
+
*/
|
|
16
|
+
declare const setAPI: ({ transpile, watch }: ServeParams) => Command;
|
|
10
17
|
|
|
11
18
|
export { setAPI };
|
package/dist/esm/cli.d.mts
CHANGED
|
@@ -3,9 +3,16 @@ import { Command } from 'commander';
|
|
|
3
3
|
type ServeParams = {
|
|
4
4
|
version: string;
|
|
5
5
|
transpile: () => void;
|
|
6
|
-
serve: () => void;
|
|
7
6
|
watch: () => void;
|
|
8
7
|
};
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Set the API for the CLI
|
|
10
|
+
*
|
|
11
|
+
* Example of commands:
|
|
12
|
+
*
|
|
13
|
+
* npm run dev
|
|
14
|
+
* npm run transpile
|
|
15
|
+
*/
|
|
16
|
+
declare const setAPI: ({ transpile, watch }: ServeParams) => Command;
|
|
10
17
|
|
|
11
18
|
export { setAPI };
|
package/dist/esm/cli.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
const setAPI = ({
|
|
2
|
+
const setAPI = ({ transpile, watch }) => {
|
|
3
3
|
const program = new Command();
|
|
4
4
|
program.version("1.0.0").description("Intlayer CLI");
|
|
5
|
-
program.command("serve").description("Start the application").action(serve);
|
|
6
|
-
program.command("start").description("Start the application").action(serve);
|
|
7
|
-
program.command("dev").description("Start the application").action(serve);
|
|
8
5
|
program.command("build").description("Build the dictionaries").action(transpile);
|
|
9
6
|
program.command("transpile").description("Build the dictionaries").action(transpile);
|
|
10
7
|
program.command("watch").description("Build the dictionaries and watch for changes").action(watch);
|
package/dist/esm/cli.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cli.ts"],"sourcesContent":["import { Command } from 'commander';\n\ntype ServeParams = {\n version: string;\n transpile: () => void;\n
|
|
1
|
+
{"version":3,"sources":["../../src/cli.ts"],"sourcesContent":["import { Command } from 'commander';\n\ntype ServeParams = {\n version: string;\n transpile: () => void;\n watch: () => void;\n};\n\n/**\n * Set the API for the CLI\n *\n * Example of commands:\n *\n * npm run dev\n * npm run transpile\n */\nexport const setAPI = ({ transpile, watch }: ServeParams): Command => {\n const program = new Command();\n\n program.version('1.0.0').description('Intlayer CLI');\n\n program\n .command('build')\n .description('Build the dictionaries')\n .action(transpile);\n program\n .command('transpile')\n .description('Build the dictionaries')\n .action(transpile);\n\n program\n .command('watch')\n .description('Build the dictionaries and watch for changes')\n .action(watch);\n\n program.parse(process.argv);\n\n return program;\n};\n"],"mappings":"AAAA,SAAS,eAAe;AAgBjB,MAAM,SAAS,CAAC,EAAE,WAAW,MAAM,MAA4B;AACpE,QAAM,UAAU,IAAI,QAAQ;AAE5B,UAAQ,QAAQ,OAAO,EAAE,YAAY,cAAc;AAEnD,UACG,QAAQ,OAAO,EACf,YAAY,wBAAwB,EACpC,OAAO,SAAS;AACnB,UACG,QAAQ,WAAW,EACnB,YAAY,wBAAwB,EACpC,OAAO,SAAS;AAEnB,UACG,QAAQ,OAAO,EACf,YAAY,8CAA8C,EAC1D,OAAO,KAAK;AAEf,UAAQ,MAAM,QAAQ,IAAI;AAE1B,SAAO;AACT;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/cli",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Command Line Interface for IntLayer - CLI process to start the applications server.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"commander": "^12.0.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^20.
|
|
39
|
+
"@types/node": "^20.12.7",
|
|
40
40
|
"rimraf": "5.0.5",
|
|
41
41
|
"tsup": "^8.0.2",
|
|
42
42
|
"@utils/ts-config": "^1.0.1"
|