monoplate-kit 1.0.1 → 1.0.2

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Arata Uebayashi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,31 @@
1
+ ## monoplate-kit
2
+ This library is necessary for launching and developing Monoplate.
3
+
4
+ ## Table of contents
5
+ - [How to use](#how-to-use)
6
+
7
+ - [All features](#all-features---log)
8
+ - [Log](#all-features---log)
9
+ - [Prompts](#prompts)
10
+ - [New Line](#new-line)
11
+ - [Run CLI](#run-cli)
12
+
13
+ - [How to develop](#how-to-develop)
14
+ - [License](#license)
15
+
16
+ ## How to use
17
+ Run `npm install monoplate-kit`
18
+
19
+ ## All features - Log
20
+
21
+ ## Prompts
22
+
23
+ ## New Line
24
+
25
+ ## Run CLI
26
+
27
+ ## How to develop
28
+
29
+ ## License
30
+ This library is licensed under the MIT License.
31
+ See the [LICENSE](LICENSE) file for details.
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "monoplate-kit",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "This library is necessary for launching and developing Monoplate.",
5
5
  "license": "MIT",
6
6
  "author": "Arata Uebayashi",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",
10
+ "files": [
11
+ "dist"
12
+ ],
10
13
  "scripts": {
11
- "build": "tsc"
14
+ "build": "tsc",
15
+ "publish": "npm run build && npm publish"
12
16
  },
13
17
  "engines": {
14
18
  "node": ">=24.14.0",
package/src/index.ts DELETED
@@ -1,56 +0,0 @@
1
- import chalk from "chalk"
2
- import * as clack from "@clack/prompts"
3
- import { execa } from "execa"
4
-
5
- export const log = (
6
- message: string,
7
- logType: "error" | "info" | "warn" | "complete",
8
- tag?: string,
9
- ): void => {
10
- const logMessage = tag ? `[${tag}] ${message}` : message
11
-
12
- switch (logType) {
13
- case "complete":
14
- console.log(chalk.green(logMessage))
15
- break
16
- case "error":
17
- console.log(chalk.red(logMessage))
18
- break
19
- case "info":
20
- console.log(chalk.blue(logMessage))
21
- break
22
- case "warn":
23
- console.log(chalk.yellow(logMessage))
24
- break
25
- }
26
- }
27
-
28
- export const prompts = async (
29
- option: Parameters<typeof clack.group>[0],
30
- ): Promise<ReturnType<typeof clack.group>> => {
31
- const data = await clack.group(option)
32
- return data
33
- }
34
-
35
- export const newLine = (number?: number): void => {
36
- // 無指定の場合は1行に設定
37
- number = number ?? 1
38
-
39
- for (let i = 0; i < number; i++) {
40
- console.log()
41
- }
42
- }
43
-
44
- export const runCli = async (command: string, options: string[]): Promise<number | undefined> => {
45
- newLine()
46
- console.log(`> ${command} ${options.join(" ")}`)
47
-
48
- newLine()
49
- const { exitCode } = await execa(command, options, {
50
- stdio: "inherit",
51
- reject: false
52
- })
53
-
54
- newLine()
55
- return exitCode
56
- }
package/tsconfig.json DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "rootDir": "./src",
4
- "outDir": "./dist",
5
-
6
- // Environment Settings
7
- "module": "nodenext",
8
- "target": "esnext",
9
-
10
- // Node
11
- "lib": ["esnext"],
12
- "types": ["node"],
13
-
14
- // Other Outputs
15
- "sourceMap": true,
16
- "declaration": true,
17
- "declarationMap": true,
18
-
19
- // Stricter Typechecking Options
20
- "noUncheckedIndexedAccess": true,
21
- "exactOptionalPropertyTypes": true,
22
- "noImplicitReturns": true,
23
- "noImplicitOverride": true,
24
- "noUnusedLocals": true,
25
- "noUnusedParameters": true,
26
- "noFallthroughCasesInSwitch": true,
27
- "noPropertyAccessFromIndexSignature": true,
28
-
29
- // Recommended Options
30
- "strict": true,
31
- "verbatimModuleSyntax": true,
32
- "isolatedModules": true,
33
- "noUncheckedSideEffectImports": true,
34
- "moduleDetection": "force",
35
- "skipLibCheck": true,
36
- }
37
- }