@batijs/cli 0.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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @batijs/cli
2
+
3
+ WIP
@@ -0,0 +1,2 @@
1
+
2
+ export { }
package/dist/index.js ADDED
@@ -0,0 +1,66 @@
1
+ // index.ts
2
+ import { defineCommand, runMain } from "citty";
3
+ import exec from "@batijs/build";
4
+
5
+ // package.json
6
+ var package_default = {
7
+ name: "@batijs/cli",
8
+ version: "0.0.1",
9
+ description: "",
10
+ type: "module",
11
+ scripts: {
12
+ prepublishOnly: "pnpm run build",
13
+ build: "tsup"
14
+ },
15
+ keywords: [],
16
+ author: "",
17
+ license: "MIT",
18
+ devDependencies: {
19
+ "@types/node": "^16.0.0",
20
+ tsup: "^6.7.0",
21
+ typescript: "^5.0.3"
22
+ },
23
+ bin: "./dist/index.js",
24
+ exports: {
25
+ ".": "./dist/index.js"
26
+ },
27
+ typesVersions: {
28
+ "*": {
29
+ ".": [
30
+ "./dist/index.d.ts"
31
+ ]
32
+ }
33
+ },
34
+ dependencies: {
35
+ "@batijs/build": "workspace:*",
36
+ citty: "^0.1.1"
37
+ },
38
+ files: [
39
+ "dist/"
40
+ ]
41
+ };
42
+
43
+ // index.ts
44
+ var main = defineCommand({
45
+ meta: {
46
+ name: package_default.name,
47
+ version: package_default.version,
48
+ description: package_default.description
49
+ },
50
+ args: {
51
+ dist: {
52
+ type: "positional",
53
+ description: "Dist folder",
54
+ required: true
55
+ }
56
+ },
57
+ run({ args }) {
58
+ exec(
59
+ {
60
+ dist: args.dist
61
+ },
62
+ {}
63
+ );
64
+ }
65
+ });
66
+ runMain(main);
package/package.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "@batijs/cli",
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "type": "module",
6
+ "keywords": [],
7
+ "author": "",
8
+ "license": "MIT",
9
+ "devDependencies": {
10
+ "@types/node": "^16.0.0",
11
+ "tsup": "^6.7.0",
12
+ "typescript": "^5.0.3"
13
+ },
14
+ "bin": "./dist/index.js",
15
+ "exports": {
16
+ ".": "./dist/index.js"
17
+ },
18
+ "typesVersions": {
19
+ "*": {
20
+ ".": [
21
+ "./dist/index.d.ts"
22
+ ]
23
+ }
24
+ },
25
+ "dependencies": {
26
+ "citty": "^0.1.1",
27
+ "@batijs/build": "0.0.1"
28
+ },
29
+ "files": [
30
+ "dist/"
31
+ ],
32
+ "scripts": {
33
+ "build": "tsup"
34
+ }
35
+ }