From a3174131be73de79591a9f4f9476a0b6000e277f Mon Sep 17 00:00:00 2001 From: Ifycode Date: Thu, 2 Apr 2026 05:16:24 +0100 Subject: [PATCH 1/2] Fix: Rename srcFolderRoot to srcCodeFolder --- docs.users/README.md | 12 ++++++------ src/shared/types/web.blocks-app.types.ts | 2 +- src/shared/web.blocks-app.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs.users/README.md b/docs.users/README.md index eae459b..a6d89cd 100644 --- a/docs.users/README.md +++ b/docs.users/README.md @@ -22,7 +22,7 @@ User installation and setup instructions can in the [root README.md](https://git ```` export interface BlocksConfig { devBuild?: { - srcFolderRoot?: string; + srcCodeFolder?: string; entryFileName?: string; }; } @@ -33,7 +33,7 @@ User installation and setup instructions can in the [root README.md](https://git |Property | Type| Required| Description| |:-- |:-- |:-- |:-- | |`devBuild` |`object` |No |A nested object containing settings specific to the development build process. | - |`devBuild.srcFolderRoot` |`string` |No |The path to the source directory. Overrides the default `'src'`. | + |`devBuild.srcCodeFolder` |`string` |No |The path to the source directory. Overrides the default `'src'`. | |`devBuild.entryFileName` |`string` |No | The name of the main entry file (without extension). Overrides the default `'index'`.| **Usage Example** @@ -47,7 +47,7 @@ User installation and setup instructions can in the [root README.md](https://git const myConfig: BlocksConfig = { devBuild: { - srcFolderRoot: 'app', + srcCodeFolder: 'app', entryFileName: 'main' } }; @@ -67,7 +67,7 @@ User installation and setup instructions can in the [root README.md](https://git |Property | Type| Default| Description| |:-- |:-- |:-- |:-- | - |`srcFolderRoot` |`string` |`'src'` |The name of the directory where source files are located. | + |`srcCodeFolder` |`string` |`'src'` |The name of the directory where source files are located. | |`entryFileName` |`string` |`'index'` |The base name of the main entry point file. | |`fileExtension` |`string` |`'.ts'` |The default file extension for the project (includes the leading dot). | @@ -85,7 +85,7 @@ User installation and setup instructions can in the [root README.md](https://git * Result: "src/index.ts" */ - const defaultEntryPoint = `${_default.srcFolderRoot}/${_default.entryFileName}${_default.fileExtension}`; + const defaultEntryPoint = `${_default.srcCodeFolder}/${_default.entryFileName}${_default.fileExtension}`; console.log(`Looking for entry file at: ${defaultEntryPoint}`); ```` @@ -97,7 +97,7 @@ User installation and setup instructions can in the [root README.md](https://git ```` import { _default } from '@build-in-blocks/dev.resources'; - const root = myConfig.devBuild?.srcFolderRoot || _default.srcFolderRoot; + const root = myConfig.devBuild?.srcCodeFolder || _default.srcCodeFolder; console.log(`Starting build from: ${root}`); ```` diff --git a/src/shared/types/web.blocks-app.types.ts b/src/shared/types/web.blocks-app.types.ts index dfddb9f..cb8c780 100644 --- a/src/shared/types/web.blocks-app.types.ts +++ b/src/shared/types/web.blocks-app.types.ts @@ -1,6 +1,6 @@ export interface BlocksConfig { devBuild?: { - srcFolderRoot?: string; + srcCodeFolder?: string; entryFileName?: string; }; } diff --git a/src/shared/web.blocks-app.ts b/src/shared/web.blocks-app.ts index 6737822..a853a44 100644 --- a/src/shared/web.blocks-app.ts +++ b/src/shared/web.blocks-app.ts @@ -1,5 +1,5 @@ export const _default = { - srcFolderRoot: 'src', + srcCodeFolder: 'src', entryFileName: 'index', //- fileExtension: '.ts', From d8ccf99070ed6d8a15803fd464f915a0468ecb83 Mon Sep 17 00:00:00 2001 From: Ifycode Date: Thu, 2 Apr 2026 18:33:49 +0100 Subject: [PATCH 2/2] Fix: Version bump to v1.0.1 and package-lock.json generation --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7ead80c..cbe0148 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@build-in-blocks/dev.resources", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@build-in-blocks/dev.resources", - "version": "1.0.0", + "version": "1.0.1", "license": "AGPL-3.0", "devDependencies": { "@build-in-blocks/dev.setup": "^1.0.2", diff --git a/package.json b/package.json index 077ef97..8ff7c64 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@build-in-blocks/dev.resources", - "version": "1.0.0", + "version": "1.0.1", "description": "Shared @build-in-blocks framework Typescript code development library.", "main": "./build/index.js", "module": "./build/index.js",