adamantite 0.0.2 → 0.0.4
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/biome.jsonc +7 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +12 -4
package/biome.jsonc
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
|
|
3
|
+
|
|
3
4
|
// ----------------------------- FORMATTER -----------------------------
|
|
4
5
|
// These are the generic settings that apply to all files in the project.
|
|
5
6
|
"formatter": {
|
|
@@ -12,14 +13,15 @@
|
|
|
12
13
|
"indentWidth": 2,
|
|
13
14
|
// Use LF line endings.
|
|
14
15
|
"lineEnding": "lf",
|
|
15
|
-
//
|
|
16
|
-
"lineWidth":
|
|
16
|
+
// The expected line width for most editors.
|
|
17
|
+
"lineWidth": 80,
|
|
17
18
|
// Don't force attributes to be on the same line as the element.
|
|
18
19
|
"attributePosition": "auto",
|
|
19
20
|
"bracketSpacing": true
|
|
20
21
|
},
|
|
22
|
+
|
|
21
23
|
// ----------------------------- ASSIST -----------------------------
|
|
22
|
-
//
|
|
24
|
+
// Help with code organization.
|
|
23
25
|
"assist": {
|
|
24
26
|
"actions": {
|
|
25
27
|
"source": {
|
|
@@ -39,7 +41,9 @@
|
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
},
|
|
44
|
+
|
|
42
45
|
// ----------------------------- LINTER -----------------------------
|
|
46
|
+
|
|
43
47
|
"linter": {
|
|
44
48
|
"enabled": true,
|
|
45
49
|
"rules": {
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Command as e}from"commander";import t from"process";import{execSync as n}from"child_process";function r(e,t=[],r={}){let i=`${e} ${t.join(` `)}`;n(i,{...r,stdio:`inherit`})}function i(e){try{let t=[`@biomejs/biome`,`lint`,`--fix`];e.length>0&&t.push(...e),r(`npx`,t)}catch(e){let n=e instanceof Error?e.message:`An unknown error occurred`;console.error(`Failed to run Adamantite:`,n),t.exit(1)}}function a(e,n){try{let t=[`@biomejs/biome`,`check`,`--write`];n.unsafe&&t.push(`--unsafe`),e.length>0&&t.push(...e),r(`npx`,t)}catch(e){let n=e instanceof Error?e.message:`An unknown error occurred`;console.error(`Failed to run Adamantite:`,n),t.exit(1)}}const o=`0.0.2`,s=new e;s.version(o),s.command(`lint`).description(`Run Biome linter and fix files`).argument(`[files...]`,`specific files to lint (optional)`).action(i),s.command(`format`).description(`Run Biome formatter and fix files`).argument(`[files...]`,`specific files to format (optional)`).option(`--unsafe`,`apply unsafe fixes`).action(a),s.parse();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "adamantite",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "An strict and opinionated set of presets for modern TypeScript applications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"adamantite",
|
|
@@ -22,19 +22,27 @@
|
|
|
22
22
|
"author": "Adel Rodriguez <hello@adelrodriguez.com>",
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "biome.jsonc",
|
|
25
|
+
"bin": {
|
|
26
|
+
"adamantite": "dist/index.js"
|
|
27
|
+
},
|
|
25
28
|
"files": [
|
|
26
29
|
"biome.jsonc",
|
|
27
|
-
"presets/tsconfig.json"
|
|
30
|
+
"presets/tsconfig.json",
|
|
31
|
+
"dist"
|
|
28
32
|
],
|
|
29
33
|
"scripts": {
|
|
34
|
+
"build": "tsdown",
|
|
30
35
|
"test": "bun test",
|
|
31
36
|
"test:watch": "bun --watch test"
|
|
32
37
|
},
|
|
33
38
|
"dependencies": {
|
|
34
|
-
"@biomejs/biome": "2.1.2"
|
|
39
|
+
"@biomejs/biome": "2.1.2",
|
|
40
|
+
"commander": "^14.0.0"
|
|
35
41
|
},
|
|
36
42
|
"devDependencies": {
|
|
37
|
-
"@
|
|
43
|
+
"@clack/prompts": "0.11.0",
|
|
44
|
+
"@types/bun": "1.2.19",
|
|
45
|
+
"tsdown": "^0.12.9"
|
|
38
46
|
},
|
|
39
47
|
"peerDependencies": {
|
|
40
48
|
"typescript": "5.8.3"
|