-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
161f841
commit aa916b6
Showing
9 changed files
with
2,930 additions
and
2,295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
"homepage": "https://github.com/StauroDEV/blumen", | ||
"scripts": { | ||
"dev": "tsx src/cli.ts", | ||
"build": "tsc", | ||
"build": "tsc -p tsconfig.build.json", | ||
"postbuild": "chmod +x ./dist/cli.js", | ||
"prepublishOnly": "pnpm build", | ||
"lint": "eslint --config eslint.config.js src/**/*.ts eslint.config.js", | ||
|
@@ -71,5 +71,6 @@ | |
}, | ||
"publishConfig": { | ||
"provenance": true | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { readFile, writeFile } from 'node:fs/promises' | ||
|
||
const pkg = await readFile('./package.json', 'utf8') | ||
|
||
const {version} = JSON.parse(pkg) | ||
|
||
await writeFile('./src/utils/version.ts', `export const BLUMEN_VERSION = '${version}'`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1 @@ | ||
import { readFile } from 'node:fs/promises' | ||
import path from 'node:path' | ||
|
||
const root = path.resolve(import.meta.dirname, '../..') | ||
|
||
export async function getVersion(): Promise<string > { | ||
const packageData = await readFile(path.resolve(root, 'package.json'), 'utf-8') | ||
const packageJson = JSON.parse(packageData) | ||
const packageVersion = packageJson.version | ||
return packageVersion as string | ||
} | ||
export const BLUMEN_VERSION = '0.1.2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "Preserve", | ||
"target": "es2022", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"moduleResolution": "Bundler", | ||
"outDir": "dist", | ||
"isolatedModules": true, | ||
"resolveJsonModule": true | ||
}, | ||
"exclude": ["node_modules", "**/*.test.ts"], | ||
"include": ["src"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "Node16", | ||
"target": "es2022", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"moduleResolution": "node16", | ||
"outDir": "dist", | ||
"isolatedModules": true, | ||
}, | ||
"exclude": ["node_modules", "**/node_modules/*","**/*.test.ts"], | ||
"include": ["src"] | ||
} | ||
"compilerOptions": { | ||
"module": "Preserve", | ||
"target": "es2022", | ||
"strict": true, | ||
"esModuleInterop": true, | ||
"skipLibCheck": true, | ||
"moduleResolution": "Bundler", | ||
"outDir": "dist", | ||
"isolatedModules": true, | ||
"resolveJsonModule": true | ||
}, | ||
"exclude": ["node_modules", "**/*.test.ts"], | ||
"include": ["src", "scripts"] | ||
} | ||
|