@intlayer/cli 1.0.0 → 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 +15 -0
- package/dist/cjs/cli.cjs +12 -29
- package/dist/cjs/cli.cjs.map +1 -1
- package/dist/cjs/cli.d.ts +13 -6
- package/dist/cjs/index.cjs +9 -17
- package/dist/cjs/index.d.ts +2 -2
- package/dist/esm/cli.d.mts +13 -6
- package/dist/esm/cli.mjs +8 -18
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/index.d.mts +2 -2
- package/dist/esm/index.mjs +2 -2
- package/package.json +7 -7
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# @intlayer/cli
|
|
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
|
+
|
|
11
|
+
## 1.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#3](https://github.com/aypineau/intlayer/pull/3) [`3b711f0`](https://github.com/aypineau/intlayer/commit/3b711f04c6e63f211e5c5d234fe5ee7dcf24bd38) Thanks [@aypineau](https://github.com/aypineau)! - Initialize changeset
|
package/dist/cjs/cli.cjs
CHANGED
|
@@ -8,48 +8,31 @@ var __export = (target, all) => {
|
|
|
8
8
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
9
|
};
|
|
10
10
|
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
12
|
for (let key of __getOwnPropNames(from))
|
|
13
13
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, {
|
|
15
|
-
get: () => from[key],
|
|
16
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
|
|
17
|
-
});
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
15
|
}
|
|
19
16
|
return to;
|
|
20
17
|
};
|
|
21
|
-
var __toCommonJS = (mod) =>
|
|
22
|
-
__copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
19
|
var cli_exports = {};
|
|
24
20
|
__export(cli_exports, {
|
|
25
|
-
setAPI: () => setAPI
|
|
21
|
+
setAPI: () => setAPI
|
|
26
22
|
});
|
|
27
23
|
module.exports = __toCommonJS(cli_exports);
|
|
28
24
|
var import_commander = require("commander");
|
|
29
|
-
const setAPI = ({
|
|
25
|
+
const setAPI = ({ transpile, watch }) => {
|
|
30
26
|
const program = new import_commander.Command();
|
|
31
27
|
program.version("1.0.0").description("Intlayer CLI");
|
|
32
|
-
program.command("
|
|
33
|
-
program.command("
|
|
34
|
-
program.command("
|
|
35
|
-
program
|
|
36
|
-
.command("build")
|
|
37
|
-
.description("Build the dictionaries")
|
|
38
|
-
.action(transpile);
|
|
39
|
-
program
|
|
40
|
-
.command("transpile")
|
|
41
|
-
.description("Build the dictionaries")
|
|
42
|
-
.action(transpile);
|
|
43
|
-
program
|
|
44
|
-
.command("watch")
|
|
45
|
-
.description("Build the dictionaries and watch for changes")
|
|
46
|
-
.action(watch);
|
|
28
|
+
program.command("build").description("Build the dictionaries").action(transpile);
|
|
29
|
+
program.command("transpile").description("Build the dictionaries").action(transpile);
|
|
30
|
+
program.command("watch").description("Build the dictionaries and watch for changes").action(watch);
|
|
47
31
|
program.parse(process.argv);
|
|
48
32
|
return program;
|
|
49
33
|
};
|
|
50
34
|
// Annotate the CommonJS export names for ESM import in node:
|
|
51
|
-
0 &&
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
//# sourceMappingURL=cli.cjs.map
|
|
35
|
+
0 && (module.exports = {
|
|
36
|
+
setAPI
|
|
37
|
+
});
|
|
38
|
+
//# sourceMappingURL=cli.cjs.map
|
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
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { Command } from
|
|
1
|
+
import { Command } from 'commander';
|
|
2
2
|
|
|
3
3
|
type ServeParams = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
watch: () => void;
|
|
4
|
+
version: string;
|
|
5
|
+
transpile: () => void;
|
|
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/cjs/index.cjs
CHANGED
|
@@ -4,28 +4,20 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
8
|
for (let key of __getOwnPropNames(from))
|
|
9
9
|
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, {
|
|
11
|
-
get: () => from[key],
|
|
12
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
|
|
13
|
-
});
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
11
|
}
|
|
15
12
|
return to;
|
|
16
13
|
};
|
|
17
|
-
var __reExport = (target, mod, secondTarget) => (
|
|
18
|
-
|
|
19
|
-
secondTarget && __copyProps(secondTarget, mod, "default")
|
|
20
|
-
);
|
|
21
|
-
var __toCommonJS = (mod) =>
|
|
22
|
-
__copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
16
|
var src_exports = {};
|
|
24
17
|
module.exports = __toCommonJS(src_exports);
|
|
25
|
-
__reExport(src_exports, require(
|
|
18
|
+
__reExport(src_exports, require('./cli.cjs'), module.exports);
|
|
26
19
|
// Annotate the CommonJS export names for ESM import in node:
|
|
27
|
-
0 &&
|
|
28
|
-
(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
//# sourceMappingURL=index.cjs.map
|
|
20
|
+
0 && (module.exports = {
|
|
21
|
+
...require('./cli.cjs')
|
|
22
|
+
});
|
|
23
|
+
//# sourceMappingURL=index.cjs.map
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { setAPI } from
|
|
2
|
-
import
|
|
1
|
+
export { setAPI } from './cli.js';
|
|
2
|
+
import 'commander';
|
package/dist/esm/cli.d.mts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { Command } from
|
|
1
|
+
import { Command } from 'commander';
|
|
2
2
|
|
|
3
3
|
type ServeParams = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
watch: () => void;
|
|
4
|
+
version: string;
|
|
5
|
+
transpile: () => void;
|
|
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,24 +1,14 @@
|
|
|
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("
|
|
6
|
-
program.command("
|
|
7
|
-
program.command("
|
|
8
|
-
program
|
|
9
|
-
.command("build")
|
|
10
|
-
.description("Build the dictionaries")
|
|
11
|
-
.action(transpile);
|
|
12
|
-
program
|
|
13
|
-
.command("transpile")
|
|
14
|
-
.description("Build the dictionaries")
|
|
15
|
-
.action(transpile);
|
|
16
|
-
program
|
|
17
|
-
.command("watch")
|
|
18
|
-
.description("Build the dictionaries and watch for changes")
|
|
19
|
-
.action(watch);
|
|
5
|
+
program.command("build").description("Build the dictionaries").action(transpile);
|
|
6
|
+
program.command("transpile").description("Build the dictionaries").action(transpile);
|
|
7
|
+
program.command("watch").description("Build the dictionaries and watch for changes").action(watch);
|
|
20
8
|
program.parse(process.argv);
|
|
21
9
|
return program;
|
|
22
10
|
};
|
|
23
|
-
export {
|
|
24
|
-
|
|
11
|
+
export {
|
|
12
|
+
setAPI
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=cli.mjs.map
|
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/dist/esm/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { setAPI } from
|
|
2
|
-
import
|
|
1
|
+
export { setAPI } from './cli.mjs';
|
|
2
|
+
import 'commander';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
//# sourceMappingURL=index.mjs.map
|
|
1
|
+
export * from './cli.mjs';
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/cli",
|
|
3
|
-
"version": "1.
|
|
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": [
|
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
"interface",
|
|
12
12
|
"server"
|
|
13
13
|
],
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/aypineau/intlayer/issues"
|
|
16
|
+
},
|
|
14
17
|
"repository": {
|
|
15
18
|
"type": "git",
|
|
16
|
-
"url": "https://github.com/aypineau/intlayer"
|
|
19
|
+
"url": "git+https://github.com/aypineau/intlayer.git"
|
|
17
20
|
},
|
|
18
21
|
"license": "MIT",
|
|
19
22
|
"author": {
|
|
@@ -33,13 +36,10 @@
|
|
|
33
36
|
"commander": "^12.0.0"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^20.
|
|
39
|
+
"@types/node": "^20.12.7",
|
|
37
40
|
"rimraf": "5.0.5",
|
|
38
41
|
"tsup": "^8.0.2",
|
|
39
|
-
"@utils/ts-config": "^1.0.
|
|
40
|
-
},
|
|
41
|
-
"publishConfig": {
|
|
42
|
-
"access": "public"
|
|
42
|
+
"@utils/ts-config": "^1.0.1"
|
|
43
43
|
},
|
|
44
44
|
"bug": {
|
|
45
45
|
"url": "https://github.com/aypineau/intlayer/issues"
|