@adbayb/create 0.0.0-next-5dd260c → 0.0.0-next.d8e717b

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/bin/index.js CHANGED
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { createRequire } from "node:module";
3
+ import pkg from "../package.json" with { type: "json" };
4
4
 
5
- const package_ = createRequire(import.meta.url)("../package.json");
6
-
7
- import(new URL(`../${package_.exports["."].default}`, import.meta.url));
5
+ void import(new URL(`../${pkg.exports["."].default}`, import.meta.url));
package/dist/index.js CHANGED
@@ -1,11 +1,14 @@
1
- import { helpers } from 'termost';
1
+ import { helpers } from "termost";
2
2
 
3
+ //#region src/index.ts
4
+ /**
5
+ * @file Package proxy using `@adbayb/stack` to benefit from NPM initializer `npm init @adbayb`.
6
+ * @see {@link https://docs.npmjs.com/cli/v9/commands/npm-init}
7
+ */
3
8
  try {
4
- await helpers.exec("pnpm dlx @adbayb/stack create", {
5
- hasLiveOutput: true
6
- });
9
+ await helpers.exec("pnx @adbayb/stack create", { hasLiveOutput: true });
7
10
  } catch (error) {
8
- helpers.message(`An error occurred while executing the npm initializer \`@adbayb/create\` (error: ${String(error)})`, {
9
- type: "error"
10
- });
11
+ helpers.message(`An error occurred while executing the npm initializer \`@adbayb/create\` (error: ${String(error)})`, { type: "error" });
11
12
  }
13
+
14
+ //#endregion
package/package.json CHANGED
@@ -1,23 +1,27 @@
1
1
  {
2
2
  "name": "@adbayb/create",
3
- "version": "0.0.0-next-5dd260c",
3
+ "version": "0.0.0-next.d8e717b",
4
4
  "description": "My opinionated scaffolding tool",
5
5
  "keywords": [
6
- "setup",
6
+ "development",
7
7
  "scaffolding",
8
- "development"
8
+ "setup"
9
9
  ],
10
- "repository": {
11
- "type": "git",
12
- "url": "https://github.com/adbayb/stack.git",
13
- "directory": "applications/create"
14
- },
15
10
  "license": "MIT",
16
11
  "author": {
17
12
  "name": "Ayoub Adib",
18
13
  "email": "adbayb@gmail.com",
19
14
  "url": "https://twitter.com/adbayb"
20
15
  },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "https://github.com/adbayb/stack.git",
19
+ "directory": "applications/create"
20
+ },
21
+ "files": [
22
+ "bin",
23
+ "dist"
24
+ ],
21
25
  "type": "module",
22
26
  "exports": {
23
27
  ".": {
@@ -25,26 +29,24 @@
25
29
  "default": "./dist/index.js"
26
30
  }
27
31
  },
28
- "bin": "./bin/index.js",
29
- "files": [
30
- "bin",
31
- "dist"
32
- ],
33
- "dependencies": {
34
- "termost": "^1.9.0",
35
- "@adbayb/stack": "^0.0.0-next-5dd260c"
36
- },
37
- "devDependencies": {
38
- "quickbundle": "2.16.0"
39
- },
40
32
  "publishConfig": {
41
33
  "access": "public",
42
34
  "registry": "https://registry.npmjs.org"
43
35
  },
36
+ "dependencies": {
37
+ "termost": "^1.9.2",
38
+ "@adbayb/stack": "^0.0.0-next.d8e717b"
39
+ },
40
+ "devDependencies": {
41
+ "quickbundle": "3.1.1"
42
+ },
44
43
  "scripts": {
45
44
  "build": "quickbundle build",
46
45
  "prestart": "pnpm build",
47
46
  "start": "./bin/index.js",
48
47
  "watch": "quickbundle watch"
48
+ },
49
+ "bin": {
50
+ "create": "./bin/index.js"
49
51
  }
50
52
  }