@intlayer/cli 1.0.0 → 1.0.1

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 ADDED
@@ -0,0 +1,7 @@
1
+ # @intlayer/cli
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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,21 +8,17 @@ 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 ((from && typeof from === "object") || typeof from === "function") {
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");
@@ -32,24 +28,14 @@ const setAPI = ({ serve, transpile, watch }) => {
32
28
  program.command("serve").description("Start the application").action(serve);
33
29
  program.command("start").description("Start the application").action(serve);
34
30
  program.command("dev").description("Start the application").action(serve);
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);
31
+ program.command("build").description("Build the dictionaries").action(transpile);
32
+ program.command("transpile").description("Build the dictionaries").action(transpile);
33
+ program.command("watch").description("Build the dictionaries and watch for changes").action(watch);
47
34
  program.parse(process.argv);
48
35
  return program;
49
36
  };
50
37
  // Annotate the CommonJS export names for ESM import in node:
51
- 0 &&
52
- (module.exports = {
53
- setAPI,
54
- });
55
- //# sourceMappingURL=cli.cjs.map
38
+ 0 && (module.exports = {
39
+ setAPI
40
+ });
41
+ //# sourceMappingURL=cli.cjs.map
package/dist/cjs/cli.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { Command } from "commander";
1
+ import { Command } from 'commander';
2
2
 
3
3
  type ServeParams = {
4
- version: string;
5
- transpile: () => void;
6
- serve: () => void;
7
- watch: () => void;
4
+ version: string;
5
+ transpile: () => void;
6
+ serve: () => void;
7
+ watch: () => void;
8
8
  };
9
9
  declare const setAPI: ({ serve, transpile, watch }: ServeParams) => Command;
10
10
 
@@ -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 ((from && typeof from === "object") || typeof from === "function") {
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
- __copyProps(target, mod, "default"),
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("./cli.cjs"), module.exports);
18
+ __reExport(src_exports, require('./cli.cjs'), module.exports);
26
19
  // Annotate the CommonJS export names for ESM import in node:
27
- 0 &&
28
- (module.exports = {
29
- ...require("./cli.cjs"),
30
- });
31
- //# sourceMappingURL=index.cjs.map
20
+ 0 && (module.exports = {
21
+ ...require('./cli.cjs')
22
+ });
23
+ //# sourceMappingURL=index.cjs.map
@@ -1,2 +1,2 @@
1
- export { setAPI } from "./cli.js";
2
- import "commander";
1
+ export { setAPI } from './cli.js';
2
+ import 'commander';
@@ -1,10 +1,10 @@
1
- import { Command } from "commander";
1
+ import { Command } from 'commander';
2
2
 
3
3
  type ServeParams = {
4
- version: string;
5
- transpile: () => void;
6
- serve: () => void;
7
- watch: () => void;
4
+ version: string;
5
+ transpile: () => void;
6
+ serve: () => void;
7
+ watch: () => void;
8
8
  };
9
9
  declare const setAPI: ({ serve, transpile, watch }: ServeParams) => Command;
10
10
 
package/dist/esm/cli.mjs CHANGED
@@ -5,20 +5,13 @@ const setAPI = ({ serve, transpile, watch }) => {
5
5
  program.command("serve").description("Start the application").action(serve);
6
6
  program.command("start").description("Start the application").action(serve);
7
7
  program.command("dev").description("Start the application").action(serve);
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);
8
+ program.command("build").description("Build the dictionaries").action(transpile);
9
+ program.command("transpile").description("Build the dictionaries").action(transpile);
10
+ program.command("watch").description("Build the dictionaries and watch for changes").action(watch);
20
11
  program.parse(process.argv);
21
12
  return program;
22
13
  };
23
- export { setAPI };
24
- //# sourceMappingURL=cli.mjs.map
14
+ export {
15
+ setAPI
16
+ };
17
+ //# sourceMappingURL=cli.mjs.map
@@ -1,2 +1,2 @@
1
- export { setAPI } from "./cli.mjs";
2
- import "commander";
1
+ export { setAPI } from './cli.mjs';
2
+ import 'commander';
@@ -1,2 +1,2 @@
1
- export * from "./cli.mjs";
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.0.0",
3
+ "version": "1.0.1",
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": {
@@ -36,10 +39,7 @@
36
39
  "@types/node": "^20.11.30",
37
40
  "rimraf": "5.0.5",
38
41
  "tsup": "^8.0.2",
39
- "@utils/ts-config": "^1.0.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"