@aiox/ace 0.0.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/dist/cli.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+ import { greet } from './lib.js';
3
+ const msg = greet('world');
4
+ console.log(msg);
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './lib.js';
package/dist/lib.js ADDED
@@ -0,0 +1,5 @@
1
+ import { core } from '@aiox/core';
2
+ import pkg from '../package.json' with { type: 'json' };
3
+ export function greet(name) {
4
+ return `hello ${name} from ${pkg.name} via ${core}`;
5
+ }
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@aiox/ace",
3
+ "version": "0.0.0",
4
+ "description": "Automatic Command-line Engine",
5
+ "bin": "dist/cli.js",
6
+ "files": [
7
+ "dist",
8
+ "src",
9
+ "package.json"
10
+ ],
11
+ "type": "module",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./src/index.ts",
15
+ "import": "./dist/index.js"
16
+ }
17
+ },
18
+ "publishConfig": {
19
+ "access": "public"
20
+ },
21
+ "scripts": {
22
+ "preinstall": "mkdir -p dist && touch dist/cli.js"
23
+ },
24
+ "dependencies": {
25
+ "@aiox/core": "workspace:*"
26
+ }
27
+ }
package/src/cli.ts ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+
3
+ import { greet } from './lib.js'
4
+
5
+ const msg = greet('world')
6
+ console.log(msg)
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib.js'
package/src/lib.ts ADDED
@@ -0,0 +1,7 @@
1
+ import { core } from '@aiox/core'
2
+
3
+ import pkg from '../package.json' with { type: 'json' }
4
+
5
+ export function greet(name: string) {
6
+ return `hello ${name} from ${pkg.name} via ${core}`
7
+ }