Skip to content

Commit

Permalink
Merge pull request #8 from DIG-Network/release/v0.0.1-alpha.8
Browse files Browse the repository at this point in the history
Release/v0.0.1 alpha.8
  • Loading branch information
MichaelTaylor3D authored Sep 10, 2024
2 parents d15b6bd + 3d6f08a commit b97a5f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.1-alpha.8](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.7...v0.0.1-alpha.8) (2024-09-10)


### Bug Fixes

* set dig config when doesnt exist ([5921339](https://github.com/DIG-Network/dig-chia-sdk/commit/592133903ddae41fca24eb316f7333a941e78bfa))

### [0.0.1-alpha.7](https://github.com/DIG-Network/dig-chia-sdk/compare/v0.0.1-alpha.6...v0.0.1-alpha.7) (2024-09-10)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dignetwork/dig-sdk",
"version": "0.0.1-alpha.7",
"version": "0.0.1-alpha.8",
"description": "",
"type": "commonjs",
"main": "./dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,12 @@ export const loadDigConfig = (baseDir: string): DigConfig => {
*/
export const ensureDigConfig = (baseDir: string): DigConfig => {
if (!fs.existsSync(CONFIG_FILE_PATH)) {
fs.mkdirSync(DIG_FOLDER_PATH, { recursive: true });
const defaultConfig: DigConfig = { deploy_dir: "./dist" };
fs.writeFileSync(
CONFIG_FILE_PATH,
JSON.stringify(defaultConfig, null, 4),
"utf-8"
"utf-8",
);
console.log(`Created new dig.config.json at ${CONFIG_FILE_PATH}`);
return defaultConfig;
Expand Down

0 comments on commit b97a5f4

Please sign in to comment.