create-metorial 0.0.0-dev.9
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/bin.cjs +13 -0
- package/package.json +21 -0
package/dist/bin.cjs
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// src/bin.ts
|
|
5
|
+
var import_cli_core = require("@metorial/cli-core");
|
|
6
|
+
var args = process.argv.slice(2);
|
|
7
|
+
var cliArgs = args.length === 0 ? ["example", "list"] : ["example", "create", ...args];
|
|
8
|
+
var transform = (0, import_cli_core.replaceOutput)("metorial example create", "npm create");
|
|
9
|
+
void (0, import_cli_core.runCLIAndExit)(cliArgs, {
|
|
10
|
+
env: (0, import_cli_core.npmInstallEnvironment)("create-metorial"),
|
|
11
|
+
stdoutTransform: transform,
|
|
12
|
+
stderrTransform: transform
|
|
13
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "create-metorial",
|
|
3
|
+
"version": "0.0.0-dev.9",
|
|
4
|
+
"description": "npm create entrypoint for Metorial examples",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-metorial": "./dist/bin.cjs"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsup --config tsup.config.ts"
|
|
17
|
+
},
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@metorial/cli-core": "0.0.0-dev.9"
|
|
20
|
+
}
|
|
21
|
+
}
|