adamantite 0.7.2 → 0.9.0

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 CHANGED
@@ -80,34 +80,34 @@ echo '{ "extends": "adamantite/presets/tsconfig.json" }' > tsconfig.json
80
80
 
81
81
  Adamantite provides a comprehensive CLI for all your code quality needs:
82
82
 
83
- ### `adamantite lint`
83
+ ### `adamantite check`
84
84
 
85
- Lint and automatically fix issues in your codebase:
85
+ Check your code for issues without automatically fixing them:
86
86
 
87
87
  ```shell
88
- # Lint all files
89
- adamantite lint
88
+ # Check all files
89
+ adamantite check
90
90
 
91
- # Lint specific files
92
- adamantite lint src/components/**/*.ts
91
+ # Check specific files
92
+ adamantite check src/components/**/*.ts
93
93
 
94
94
  # Show summary of results
95
- adamantite lint --summary
95
+ adamantite check --summary
96
96
  ```
97
97
 
98
- ### `adamantite format`
98
+ ### `adamantite fix`
99
99
 
100
- Format your code with consistent style:
100
+ Fix issues in your code with automatic formatting and safe fixes:
101
101
 
102
102
  ```shell
103
- # Format all files
104
- adamantite format
103
+ # Fix all files
104
+ adamantite fix
105
105
 
106
- # Format specific files
107
- adamantite format src/utils.ts
106
+ # Fix specific files
107
+ adamantite fix src/utils.ts
108
108
 
109
- # Apply unsafe formatting fixes
110
- adamantite format --unsafe
109
+ # Apply unsafe fixes
110
+ adamantite fix --unsafe
111
111
  ```
112
112
 
113
113
  ### `adamantite ci`
package/biome.jsonc CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
2
+ "$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
3
3
 
4
4
  // ---------------------------- FORMATTER -----------------------------
5
5
  // These are the generic settings that apply to all files in the project.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import{Command as e}from"commander";import{execSync as t}from"child_process";import{addDevDependency as n,detectPackageManager as r,dlxCommand as i}from"nypm";import{access as a,mkdir as o,readFile as s,writeFile as c}from"fs/promises";import{join as l}from"path";import u from"process";import{cancel as d,confirm as f,intro as p,isCancel as m,log as h,multiselect as g,outro as _,spinner as v}from"@clack/prompts";import y from"defu";import{parse as b}from"jsonc-parser";import{readFileSync as x}from"fs";async function S(){let e=await r(u.cwd());if(!e)throw Error(`No package manager found`);let{warnings:t,...n}=e;return t&&t.length>0&&console.warn(t.join(`
2
- `)),n.name}function C(e){let t=e instanceof Error?e.message:`An unknown error occurred`;console.error(`Failed to run Adamantite:`,t),u.exit(1)}async function w(e){try{return await a(e),!0}catch{return!1}}async function T(e=u.cwd()){let t=l(e,`package.json`);if(!await w(t))throw Error(`package.json not found in the current directory`);try{let e=await s(t,`utf-8`),n=JSON.parse(e);return n}catch(e){throw Error(`Failed to parse package.json: ${e instanceof Error?e.message:`Unknown error`}`)}}async function E(e,t=u.cwd()){let n=l(t,`package.json`);try{await c(n,JSON.stringify(e,null,2))}catch(e){throw Error(`Failed to write package.json: ${e instanceof Error?e.message:`Unknown error`}`)}}function D(){let e=u.stdout.columns||80;return e>=120?`
2
+ `)),n.name}function C(e){let t=e instanceof Error?e.message:`An unknown error occurred`;console.error(`Failed to run Adamantite:`,t),u.exit(1)}async function w(e){try{return await a(e),!0}catch{return!1}}async function T(e=u.cwd()){let t=l(e,`package.json`);if(!await w(t))throw Error(`package.json not found in the current directory`);try{let e=await s(t,`utf-8`);return JSON.parse(e)}catch(e){throw Error(`Failed to parse package.json: ${e instanceof Error?e.message:`Unknown error`}`)}}async function E(e,t=u.cwd()){let n=l(t,`package.json`);try{await c(n,JSON.stringify(e,null,2))}catch(e){throw Error(`Failed to write package.json: ${e instanceof Error?e.message:`Unknown error`}`)}}function D(){return(u.stdout.columns||80)>=120?`
3
3
  █████ █████ ███ █████
4
4
  ░░███ ░░███ ░░░ ░░███
5
5
  ██████ ███████ ██████ █████████████ ██████ ████████ ███████ ████ ███████ ██████
@@ -12,5 +12,5 @@ import{Command as e}from"commander";import{execSync as t}from"child_process";imp
12
12
  ┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
13
13
  ┃ ADAMANTITE ┃
14
14
  ┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
15
- `}async function O({github:e,monorepo:n}){try{let r=await S(),a=[{package:`@biomejs/biome`,args:[`ci`,...e?[`--reporter`,`github`]:[]]},...n?[{package:`sherif`,args:[]}]:[]];for(let e of a)t(i(r,e.package,{args:e.args}),{stdio:`inherit`})}catch(e){C(e)}}async function k(e,n){try{let r=await S(),a=[`check`,`--write`];n.unsafe&&a.push(`--unsafe`),e.length>0&&a.push(...e),t(i(r,`@biomejs/biome`,{args:a}),{stdio:`inherit`})}catch(e){C(e)}}const A={config:{extends:`adamantite/presets/tsconfig.json`},async exists(){return await w(l(process.cwd(),`tsconfig.json`))},async create(){await c(l(process.cwd(),`tsconfig.json`),JSON.stringify(this.config,null,2))},async update(){let e=await s(l(process.cwd(),`tsconfig.json`),`utf-8`),t=b(e),n=y(this.config,t);await c(l(process.cwd(),`tsconfig.json`),JSON.stringify(n,null,2))}},j={version:`2.2.2`,config:{$schema:`./node_modules/@biomejs/biome/configuration_schema.json`},async exists(){return await w(l(process.cwd(),`biome.jsonc`))},async create(){await c(l(process.cwd(),`biome.jsonc`),JSON.stringify({...this.config,extends:[`adamantite`]},null,2))},async update(){let e=await w(l(process.cwd(),`biome.jsonc`))?l(process.cwd(),`biome.jsonc`):l(process.cwd(),`biome.json`),t=await s(e,`utf-8`),n=b(t),r={...n};Array.isArray(r.extends)||(r.extends=r.extends?[r.extends]:[]),r.extends.includes(`adamantite`)||r.extends.push(`adamantite`);let i=y(this.config,r);await c(l(process.cwd(),`biome.jsonc`),JSON.stringify(i,null,2))}},M={config:{"typescript.tsdk":`node_modules/typescript/lib`,"editor.formatOnSave":!0,"editor.formatOnPaste":!0,"editor.codeActionsOnSave":{"source.organizeImports.biome":`explicit`,"source.fixAll.biome":`explicit`},"[javascript][typescript][javascriptreact][typescriptreact][json][jsonc][css][graphql]":{"editor.defaultFormatter":`biomejs.biome`}},async exists(){return await w(l(process.cwd(),`.vscode`,`settings.json`))},async create(){let e=l(process.cwd(),`.vscode`);await o(e,{recursive:!0}),await c(l(e,`settings.json`),JSON.stringify(this.config,null,2))},async update(){let e=l(process.cwd(),`.vscode`,`settings.json`),t=await s(e,`utf-8`),n=b(t),r=y(this.config,n);await c(l(process.cwd(),`.vscode`,`settings.json`),JSON.stringify(r,null,2))}},N={version:`1.6.1`};async function P(){let e=u.cwd();if(await w(l(e,`pnpm-workspace.yaml`)))return!0;try{let e=await T();return e.workspaces!==void 0}catch{return!1}}async function F(){let e=v();await j.exists()?(e.start(`Biome config found, updating...`),await j.update(),e.stop(`Biome config updated with Adamantite preset`)):(e.start(`Biome config not found, creating...`),await j.create(),e.stop(`Biome config created with Adamantite preset`))}async function I({lint:e,format:t,monorepo:n}){let r=v();r.start("Adding scripts to your `package.json`...");try{let i=await T();i.scripts||={},e&&(i.scripts.lint=`adamantite lint`),t&&(i.scripts.format=`adamantite format`),n&&(i.scripts[`lint:monorepo`]=`adamantite monorepo`),await E(i),r.stop("Scripts added to your `package.json`")}catch(e){throw r.stop(`Failed to add scripts`),Error(`Failed to modify package.json: ${e instanceof Error?e.message:`Unknown error`}`)}}async function L(){let e=v();await A.exists()?(e.start("`tsconfig.json` found, updating..."),await A.update(),e.stop("Updated `tsconfig.json` with preset")):(e.start("`tsconfig.json` not found, creating..."),await A.create(),e.stop("Created `tsconfig.json` with preset"))}async function R(){let e=await g({message:`Which editors do you want to configure (recommended)?`,options:[{label:`VSCode / Cursor / Windsurf`,value:`vscode`},{label:`Zed (coming soon)`,value:`zed`}],required:!1});if(m(e))throw Error(`Operation cancelled`);return e}async function z(e){if(!e||e.length===0)return;let t=v();e.includes(`vscode`)&&(await M.exists()?(t.start(`VSCode settings found, updating...`),await M.update(),t.stop(`VSCode settings updated with Adamantite preset`)):(t.start(`VSCode settings not found, creating...`),await M.create(),t.stop(`VSCode settings created with Adamantite preset`))),e.includes(`zed`)&&(t.start(`Zed configuration coming soon...`),t.stop(`Zed configuration coming soon...`))}async function B(e){let t=await f({message:e});if(m(t))throw Error(`Operation cancelled`);return t}async function V(e){let t=v();t.start(`Installing dependencies...`);try{await n(`adamantite`);let r=j.version;await n(`@biomejs/biome@${r}`),e?.monorepo&&await n(`sherif@${N.version}`),t.stop(`Dependencies installed successfully`)}catch(e){throw t.stop(`Failed to install dependencies`),Error(`Failed to install dependencies: ${e instanceof Error?e.message:`Unknown error`}`)}}async function H(){p(D());try{let e=await P(),t=await B("Do you want to add the `format` and `lint` scripts to your `package.json`?"),n=e?await B(`We've detected a monorepo setup in your project. Would you like to install monorepo linting scripts?`):!1,r=await B(`Adamantite provides a TypeScript preset to enforce strict type-safety. Would you like to install it?`),i=await R();await V({monorepo:n}),await F(),(t||n)&&await I({lint:t,format:t,monorepo:n}),r&&await L(),await z(i),_(`💠 Adamantite initialized successfully!`)}catch(e){h.error(`${e instanceof Error?e.message:`Unknown error`}`),d(`Failed to initialize Adamantite`)}}async function U(e,{summary:n}){try{let r=await S(),a=[`lint`,`--fix`];n&&a.push(`--reporter`,`summary`),e.length>0&&a.push(...e),t(i(r,`@biomejs/biome`,{args:a}),{stdio:`inherit`})}catch(e){C(e)}}async function W(){try{let e=await S();t(i(e,`sherif`,{args:[`--fix`]}),{stdio:`inherit`})}catch(e){C(e)}}async function G(){let e=[];try{let t=await T(),n=t.devDependencies?.[`@biomejs/biome`];n&&n!==j.version&&e.push({name:`@biomejs/biome`,currentVersion:n,targetVersion:j.version,isDevDependency:!0});let r=t.devDependencies?.sherif;return r&&r!==N.version&&e.push({name:`sherif`,currentVersion:r,targetVersion:N.version,isDevDependency:!0}),e}catch(e){throw Error(`Failed to read package.json: ${e instanceof Error?e.message:`Unknown error`}`)}}async function K(e){let t=v();t.start(`Updating dependencies...`);try{let r=e.map(e=>n(`${e.name}@${e.targetVersion}`)),i=await Promise.allSettled(r),a=[],o=[];for(let[t,n]of i.entries()){let r=e[t];if(!r)continue;let i=r.name;n.status===`fulfilled`?o.push(i):a.push(`${i}: ${n.reason?.message||`Unknown error`}`)}if(a.length===0)t.stop(`Dependencies updated successfully`);else if(o.length===0)throw t.stop(`Failed to update dependencies`),Error(`All dependency updates failed:\n${a.join(`
16
- `)}`);else{t.stop(`Partial update completed`),h.warn(`Some dependencies failed to update:`);for(let e of a)h.warn(` ${e}`);h.success(`Successfully updated: ${o.join(`, `)}`)}}catch(e){throw t.stop(`Failed to update dependencies`),e}}async function q(e){h.message(`The following dependencies will be updated:`),h.message(``);for(let t of e)h.message(` ${t.name}: ${t.currentVersion} → ${t.targetVersion}`);h.message(``);let t=await f({message:`Do you want to proceed with these updates?`});if(m(t))throw Error(`Operation cancelled`);return t}async function J(){p(D());try{let e=await G();if(e.length===0){h.success(`All adamantite dependencies are already up to date!`),_(`💠 No updates needed`);return}let t=await q(e);if(!t){_(`💠 Update cancelled`);return}await K(e),_(`💠 Dependencies updated successfully!`)}catch(e){h.error(`${e instanceof Error?e.message:`Unknown error`}`),d(`Failed to update dependencies`)}}function Y(){let e=JSON.parse(x(l(process.cwd(),`package.json`),`utf-8`));return e.version}const X=Y();var Z=X;const Q=new e;Q.version(Z),Q.name(`adamantite`).description(`An opinionated set of presets for modern TypeScript applications`),Q.command(`init`).description(`Initialize Adamantite in the current directory`).action(H),Q.command(`lint`).description(`Run Biome linter and fix files`).argument(`[files...]`,`specific files to lint (optional)`).option(`--summary`,`show summary of lint results`).action(async(e,t)=>{await U(e,t)}),Q.command(`format`).description(`Run Biome formatter and fix files`).argument(`[files...]`,`specific files to format (optional)`).option(`--unsafe`,`apply unsafe fixes`).action(async(e,t)=>{await k(e,t)}),Q.command(`monorepo`).description(`Lint and automatically fix monorepo-specific issues using Sherif`).action(W),Q.command(`ci`).description(`Run Biome CI`).option(`--monorepo`,`run additional monorepo-specific checks`).option(`--github`,`use GitHub reporter`).action(async e=>{await O(e)}),Q.command(`update`).description(`Update adamantite dependencies to latest compatible versions`).action(J),Q.parse();
15
+ `}async function O(e,{summary:n}){try{let r=await S(),a=[`check`];n&&a.push(`--reporter`,`summary`),e.length>0&&a.push(...e),t(i(r,`@biomejs/biome`,{args:a}),{stdio:`inherit`})}catch(e){C(e)}}async function k({github:e,monorepo:n}){try{let r=await S(),a=[{package:`@biomejs/biome`,args:[`ci`,...e?[`--reporter`,`github`]:[]]},...n?[{package:`sherif`,args:[]}]:[]];for(let e of a)t(i(r,e.package,{args:e.args}),{stdio:`inherit`})}catch(e){C(e)}}async function A(e,n){try{let r=await S(),a=[`check`,`--write`];n.unsafe&&a.push(`--unsafe`),e.length>0&&a.push(...e),t(i(r,`@biomejs/biome`,{args:a}),{stdio:`inherit`})}catch(e){C(e)}}const j={config:{extends:`adamantite/presets/tsconfig.json`},async exists(){return await w(l(process.cwd(),`tsconfig.json`))},async create(){await c(l(process.cwd(),`tsconfig.json`),JSON.stringify(this.config,null,2))},async update(){let e=await s(l(process.cwd(),`tsconfig.json`),`utf-8`),t=b(e),n=y(this.config,t);await c(l(process.cwd(),`tsconfig.json`),JSON.stringify(n,null,2))}},M={version:`2.2.4`,config:{$schema:`./node_modules/@biomejs/biome/configuration_schema.json`},async exists(){return await w(l(process.cwd(),`biome.jsonc`))},async create(){await c(l(process.cwd(),`biome.jsonc`),JSON.stringify({...this.config,extends:[`adamantite`]},null,2))},async update(){let e=await w(l(process.cwd(),`biome.jsonc`))?l(process.cwd(),`biome.jsonc`):l(process.cwd(),`biome.json`),t=await s(e,`utf-8`),n={...b(t)};Array.isArray(n.extends)||(n.extends=n.extends?[n.extends]:[]),n.extends.includes(`adamantite`)||n.extends.push(`adamantite`);let r=y(this.config,n);await c(l(process.cwd(),`biome.jsonc`),JSON.stringify(r,null,2))}},N={config:{"typescript.tsdk":`node_modules/typescript/lib`,"editor.formatOnSave":!0,"editor.formatOnPaste":!0,"editor.codeActionsOnSave":{"source.organizeImports.biome":`explicit`,"source.fixAll.biome":`explicit`},"[javascript][typescript][javascriptreact][typescriptreact][json][jsonc][css][graphql]":{"editor.defaultFormatter":`biomejs.biome`}},async exists(){return await w(l(process.cwd(),`.vscode`,`settings.json`))},async create(){let e=l(process.cwd(),`.vscode`);await o(e,{recursive:!0}),await c(l(e,`settings.json`),JSON.stringify(this.config,null,2))},async update(){let e=l(process.cwd(),`.vscode`,`settings.json`),t=await s(e,`utf-8`),n=b(t),r=y(this.config,n);await c(l(process.cwd(),`.vscode`,`settings.json`),JSON.stringify(r,null,2))}},P={version:`1.6.1`};async function F(){let e=u.cwd();if(await w(l(e,`pnpm-workspace.yaml`)))return!0;try{return(await T()).workspaces!==void 0}catch{return!1}}async function I(){let e=v();await M.exists()?(e.start(`Biome config found, updating...`),await M.update(),e.stop(`Biome config updated with Adamantite preset`)):(e.start(`Biome config not found, creating...`),await M.create(),e.stop(`Biome config created with Adamantite preset`))}async function L({check:e,fix:t,monorepo:n}){let r=v();r.start("Adding scripts to your `package.json`...");try{let i=await T();i.scripts||={},e&&(i.scripts.check=`adamantite check`),t&&(i.scripts.fix=`adamantite fix`),n&&(i.scripts[`lint:monorepo`]=`adamantite monorepo`),await E(i),r.stop("Scripts added to your `package.json`")}catch(e){throw r.stop(`Failed to add scripts`),Error(`Failed to modify package.json: ${e instanceof Error?e.message:`Unknown error`}`)}}async function R(){let e=v();await j.exists()?(e.start("`tsconfig.json` found, updating..."),await j.update(),e.stop("Updated `tsconfig.json` with preset")):(e.start("`tsconfig.json` not found, creating..."),await j.create(),e.stop("Created `tsconfig.json` with preset"))}async function z(){let e=await g({message:`Which editors do you want to configure (recommended)?`,options:[{label:`VSCode / Cursor / Windsurf`,value:`vscode`},{label:`Zed (coming soon)`,value:`zed`}],required:!1});if(m(e))throw Error(`Operation cancelled`);return e}async function B(e){if(!e||e.length===0)return;let t=v();e.includes(`vscode`)&&(await N.exists()?(t.start(`VSCode settings found, updating...`),await N.update(),t.stop(`VSCode settings updated with Adamantite preset`)):(t.start(`VSCode settings not found, creating...`),await N.create(),t.stop(`VSCode settings created with Adamantite preset`))),e.includes(`zed`)&&(t.start(`Zed configuration coming soon...`),t.stop(`Zed configuration coming soon...`))}async function V(e){let t=await f({message:e});if(m(t))throw Error(`Operation cancelled`);return t}async function H(e){let t=v();t.start(`Installing dependencies...`);try{await n(`adamantite`);let r=M.version;await n(`@biomejs/biome@${r}`),e?.monorepo&&await n(`sherif@${P.version}`),t.stop(`Dependencies installed successfully`)}catch(e){throw t.stop(`Failed to install dependencies`),Error(`Failed to install dependencies: ${e instanceof Error?e.message:`Unknown error`}`)}}async function U(){p(D());try{let e=await F(),t=await V("Do you want to add the `check` and `fix` scripts to your `package.json`?"),n=e?await V(`We've detected a monorepo setup in your project. Would you like to install monorepo linting scripts?`):!1,r=await V(`Adamantite provides a TypeScript preset to enforce strict type-safety. Would you like to install it?`),i=await z();await H({monorepo:n}),await I(),(t||n)&&await L({check:t,fix:t,monorepo:n}),r&&await R(),await B(i),_(`💠 Adamantite initialized successfully!`)}catch(e){h.error(`${e instanceof Error?e.message:`Unknown error`}`),d(`Failed to initialize Adamantite`)}}async function W(){try{let e=await S();t(i(e,`sherif`,{args:[`--fix`]}),{stdio:`inherit`})}catch(e){C(e)}}async function G(){let e=[];try{let t=await T(),n=t.devDependencies?.[`@biomejs/biome`];n&&n!==M.version&&e.push({name:`@biomejs/biome`,currentVersion:n,targetVersion:M.version,isDevDependency:!0});let r=t.devDependencies?.sherif;return r&&r!==P.version&&e.push({name:`sherif`,currentVersion:r,targetVersion:P.version,isDevDependency:!0}),e}catch(e){throw Error(`Failed to read package.json: ${e instanceof Error?e.message:`Unknown error`}`)}}async function K(e){let t=v();t.start(`Updating dependencies...`);try{let r=e.map(e=>n(`${e.name}@${e.targetVersion}`)),i=await Promise.allSettled(r),a=[],o=[];for(let[t,n]of i.entries()){let r=e[t];if(!r)continue;let i=r.name;n.status===`fulfilled`?o.push(i):a.push(`${i}: ${n.reason?.message||`Unknown error`}`)}if(a.length===0)t.stop(`Dependencies updated successfully`);else if(o.length===0)throw t.stop(`Failed to update dependencies`),Error(`All dependency updates failed:\n${a.join(`
16
+ `)}`);else{t.stop(`Partial update completed`),h.warn(`Some dependencies failed to update:`);for(let e of a)h.warn(` ${e}`);h.success(`Successfully updated: ${o.join(`, `)}`)}}catch(e){throw t.stop(`Failed to update dependencies`),e}}async function q(e){h.message(`The following dependencies will be updated:`),h.message(``);for(let t of e)h.message(` ${t.name}: ${t.currentVersion} → ${t.targetVersion}`);h.message(``);let t=await f({message:`Do you want to proceed with these updates?`});if(m(t))throw Error(`Operation cancelled`);return t}async function J(){p(D());try{let e=await G();if(e.length===0){h.success(`All adamantite dependencies are already up to date!`),_(`💠 No updates needed`);return}if(!await q(e)){_(`💠 Update cancelled`);return}await K(e),_(`💠 Dependencies updated successfully!`)}catch(e){h.error(`${e instanceof Error?e.message:`Unknown error`}`),d(`Failed to update dependencies`)}}function Y(){return JSON.parse(x(l(process.cwd(),`package.json`),`utf-8`)).version}var X=Y();const Z=new e;Z.version(X),Z.name(`adamantite`).description(`An opinionated set of presets for modern TypeScript applications`),Z.command(`init`).description(`Initialize Adamantite in the current directory`).action(U),Z.command(`check`).description(`Run Biome linter and check files for issues`).argument(`[files...]`,`specific files to lint (optional)`).option(`--summary`,`show summary of lint results`).action(async(e,t)=>{await O(e,t)}),Z.command(`fix`).description(`Run Biome linter and fix issues in files`).argument(`[files...]`,`specific files to fix (optional)`).option(`--unsafe`,`apply unsafe fixes`).action(async(e,t)=>{await A(e,t)}),Z.command(`monorepo`).description(`Lint and automatically fix monorepo-specific issues using Sherif`).action(W),Z.command(`ci`).description(`Run Adamantitte in a CI environment`).option(`--monorepo`,`run additional monorepo-specific checks`).option(`--github`,`use GitHub reporter`).action(async e=>{await k(e)}),Z.command(`update`).description(`Update adamantite dependencies to latest compatible versions`).action(J),Z.parse();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adamantite",
3
- "version": "0.7.2",
3
+ "version": "0.9.0",
4
4
  "description": "An strict and opinionated set of presets for modern TypeScript applications",
5
5
  "keywords": [
6
6
  "adamantite",
@@ -26,15 +26,16 @@
26
26
  "adamantite": "bin/adamantite"
27
27
  },
28
28
  "files": [
29
+ "bin",
29
30
  "biome.jsonc",
30
- "presets/tsconfig.json",
31
- "dist"
31
+ "dist",
32
+ "presets/tsconfig.json"
32
33
  ],
33
34
  "scripts": {
34
35
  "build": "tsdown",
35
36
  "dev": "tsdown --watch",
36
- "format": "biome check --write",
37
- "lint": "biome lint --fix",
37
+ "check": "biome check",
38
+ "fix": "biome check --write",
38
39
  "release": "changeset publish",
39
40
  "test": "bun test",
40
41
  "test:watch": "bun --watch test",
@@ -44,18 +45,18 @@
44
45
  "dependencies": {
45
46
  "@clack/prompts": "0.11.0",
46
47
  "@commander-js/extra-typings": "^14.0.0",
47
- "commander": "14.0.0",
48
+ "commander": "14.0.1",
48
49
  "defu": "6.1.4",
49
50
  "jsonc-parser": "3.3.1",
50
- "nypm": "0.6.1"
51
+ "nypm": "0.6.2"
51
52
  },
52
53
  "devDependencies": {
53
- "@biomejs/biome": "2.2.2",
54
- "@changesets/cli": "2.29.6",
55
- "@types/bun": "1.2.20",
54
+ "@biomejs/biome": "2.2.4",
55
+ "@changesets/cli": "2.29.7",
56
+ "@types/bun": "1.2.22",
56
57
  "sherif": "1.6.1",
57
- "tsdown": "0.14.1",
58
- "type-fest": "4.41.0",
58
+ "tsdown": "0.15.2",
59
+ "type-fest": "5.0.0",
59
60
  "typescript": "5.9.2"
60
61
  },
61
62
  "peerDependencies": {
@@ -12,11 +12,12 @@
12
12
  // Strictness and best practices. We only recommend settings that are not
13
13
  // covered by linting rules.
14
14
  "strict": true,
15
- "noUncheckedIndexedAccess": true,
16
- "noImplicitOverride": true,
17
15
  "forceConsistentCasingInFileNames": true,
18
16
  "noImplicitAny": true,
17
+ "noImplicitOverride": true,
18
+ "noImplicitReturns": true,
19
19
  "noImplicitThis": true,
20
- "noImplicitReturns": true
20
+ "noUncheckedIndexedAccess": true,
21
+ "noUncheckedSideEffectImports": true
21
22
  }
22
23
  }