Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
b01b7d23df | |||
45c4472c53 | |||
337bee3272 | |||
709a67fe82 | |||
37082bd8f4 | |||
2c8623ab58 | |||
126fb5449b | |||
8a0095f90a | |||
704a3d1948 | |||
0538ed44af |
27
changelog.md
27
changelog.md
@ -1,5 +1,32 @@
|
||||
# Changelog
|
||||
|
||||
## 2025-01-29 - 2.2.5 - fix(mod_assets)
|
||||
Fix async handling in asset processing
|
||||
|
||||
- Ensured that the empty directory operation is awaited in the asset processing workflow.
|
||||
|
||||
## 2025-01-29 - 2.2.4 - fix(mod_assets)
|
||||
Fix logging message in ensureAssetsDir to correctly state when directory is created
|
||||
|
||||
- Corrected logging output in ensureAssetsDir method to indicate directory creation.
|
||||
|
||||
## 2025-01-29 - 2.2.3 - fix(mod_assets)
|
||||
Fix issue with asset directory copy
|
||||
|
||||
- Updated dependency '@push.rocks/smartfile' to version '^11.2.0'
|
||||
- Ensure target directory is properly replaced when copying assets
|
||||
|
||||
## 2025-01-29 - 2.2.2 - fix(dependencies)
|
||||
Update smartfile dependency and fix spacing issue in assets module
|
||||
|
||||
- Updated @push.rocks/smartfile from ^11.1.6 to ^11.1.8
|
||||
- Fixed a spacing issue in the processAssets function within the assets module
|
||||
|
||||
## 2025-01-29 - 2.2.1 - fix(index)
|
||||
Export mod_assets for programmatic use
|
||||
|
||||
- Added export for mod_assets/index in ts/index.ts to make it usable programmatically.
|
||||
|
||||
## 2025-01-29 - 2.2.0 - feat(AssetsHandler)
|
||||
Add asset handling to the CLI workflow
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@git.zone/tsbundle",
|
||||
"version": "2.2.0",
|
||||
"version": "2.2.5",
|
||||
"private": false,
|
||||
"description": "a bundler using rollup for painless bundling of web projects",
|
||||
"main": "dist_ts/index.js",
|
||||
@ -26,7 +26,7 @@
|
||||
"@push.rocks/early": "^4.0.4",
|
||||
"@push.rocks/smartcli": "^4.0.11",
|
||||
"@push.rocks/smartdelay": "^3.0.5",
|
||||
"@push.rocks/smartfile": "^11.1.6",
|
||||
"@push.rocks/smartfile": "^11.2.0",
|
||||
"@push.rocks/smartlog": "^3.0.7",
|
||||
"@push.rocks/smartlog-destination-local": "^9.0.2",
|
||||
"@push.rocks/smartpath": "^5.0.18",
|
||||
|
32
pnpm-lock.yaml
generated
32
pnpm-lock.yaml
generated
@ -18,8 +18,8 @@ importers:
|
||||
specifier: ^3.0.5
|
||||
version: 3.0.5
|
||||
'@push.rocks/smartfile':
|
||||
specifier: ^11.1.6
|
||||
version: 11.1.6
|
||||
specifier: ^11.2.0
|
||||
version: 11.2.0
|
||||
'@push.rocks/smartlog':
|
||||
specifier: ^3.0.7
|
||||
version: 3.0.7
|
||||
@ -777,8 +777,8 @@ packages:
|
||||
'@push.rocks/smartfile@10.0.41':
|
||||
resolution: {integrity: sha512-xOOy0duI34M2qrJZggpk51EHGXmg9+mBL1Q55tNiQKXzfx89P3coY1EAZG8tvmep3qB712QEKe7T+u04t42Kjg==}
|
||||
|
||||
'@push.rocks/smartfile@11.1.6':
|
||||
resolution: {integrity: sha512-xKcynSrP7JmG1BKQsO+UskF0/fNyUFeDF3FGxoTgHsMqZgEgKDJqlHv657LcM6x6CV2VJcZdNOfIBr2zbkyitQ==}
|
||||
'@push.rocks/smartfile@11.2.0':
|
||||
resolution: {integrity: sha512-0Gw6DvCQ2D/BXNN6airSC7hoSBut0p/uNWf2+rqO+D6VLhIJ/QUBvF6xm/LnpPI/zcF8YlDn/GEriInB5DUtEw==}
|
||||
|
||||
'@push.rocks/smartguard@3.1.0':
|
||||
resolution: {integrity: sha512-J23q84f1O+TwFGmd4lrO9XLHUh2DaLXo9PN/9VmTWYzTkQDv5JehmifXVI0esophXcCIfbdIu6hbt7/aHlDF4A==}
|
||||
@ -4236,7 +4236,7 @@ snapshots:
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
'@push.rocks/smartenv': 5.0.12
|
||||
'@push.rocks/smartfeed': 1.0.11
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartjson': 5.0.20
|
||||
'@push.rocks/smartlog': 3.0.7
|
||||
'@push.rocks/smartlog-destination-devtools': 1.0.12
|
||||
@ -5041,7 +5041,7 @@ snapshots:
|
||||
'@push.rocks/early': 4.0.4
|
||||
'@push.rocks/smartcli': 4.0.11
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartlog': 3.0.7
|
||||
'@push.rocks/smartpath': 5.0.18
|
||||
'@push.rocks/smartpromise': 4.2.2
|
||||
@ -5054,7 +5054,7 @@ snapshots:
|
||||
'@push.rocks/early': 4.0.4
|
||||
'@push.rocks/smartcli': 4.0.11
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartlog': 3.0.7
|
||||
'@push.rocks/smartlog-destination-local': 9.0.2
|
||||
'@push.rocks/smartpath': 5.0.18
|
||||
@ -5071,7 +5071,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@push.rocks/smartcli': 4.0.11
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartlog': 3.0.7
|
||||
'@push.rocks/smartnpm': 2.0.4
|
||||
'@push.rocks/smartpath': 5.0.18
|
||||
@ -5082,7 +5082,7 @@ snapshots:
|
||||
|
||||
'@git.zone/tsrun@1.3.3':
|
||||
dependencies:
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartshell': 3.2.2
|
||||
tsx: 4.19.2
|
||||
|
||||
@ -5094,7 +5094,7 @@ snapshots:
|
||||
'@push.rocks/consolecolor': 2.0.2
|
||||
'@push.rocks/smartbrowser': 2.0.8
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartlog': 3.0.7
|
||||
'@push.rocks/smartpromise': 4.2.2
|
||||
'@push.rocks/smartshell': 3.2.2
|
||||
@ -5286,7 +5286,7 @@ snapshots:
|
||||
'@push.rocks/smartcache': 1.0.16
|
||||
'@push.rocks/smartenv': 5.0.12
|
||||
'@push.rocks/smartexit': 1.0.23
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartjson': 5.0.20
|
||||
'@push.rocks/smartpath': 5.0.18
|
||||
'@push.rocks/smartpromise': 4.2.2
|
||||
@ -5324,7 +5324,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@api.global/typedrequest': 3.1.10
|
||||
'@configvault.io/interfaces': 1.0.17
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartlog': 3.0.7
|
||||
'@push.rocks/smartpath': 5.0.18
|
||||
|
||||
@ -5476,7 +5476,7 @@ snapshots:
|
||||
glob: 10.4.5
|
||||
js-yaml: 4.1.0
|
||||
|
||||
'@push.rocks/smartfile@11.1.6':
|
||||
'@push.rocks/smartfile@11.2.0':
|
||||
dependencies:
|
||||
'@push.rocks/lik': 6.1.0
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
@ -5633,7 +5633,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@push.rocks/smartbuffer': 3.0.4
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartnetwork': 3.0.2
|
||||
'@push.rocks/smartpath': 5.0.18
|
||||
'@push.rocks/smartpromise': 4.2.2
|
||||
@ -5686,7 +5686,7 @@ snapshots:
|
||||
'@push.rocks/smarts3@2.2.5':
|
||||
dependencies:
|
||||
'@push.rocks/smartbucket': 3.3.7
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartpath': 5.0.18
|
||||
'@tsclass/tsclass': 4.4.0
|
||||
'@types/s3rver': 3.7.4
|
||||
@ -5833,7 +5833,7 @@ snapshots:
|
||||
'@push.rocks/smartdelay': 3.0.5
|
||||
'@push.rocks/smartenv': 5.0.12
|
||||
'@push.rocks/smartexpect': 1.4.0
|
||||
'@push.rocks/smartfile': 11.1.6
|
||||
'@push.rocks/smartfile': 11.2.0
|
||||
'@push.rocks/smartjson': 5.0.20
|
||||
'@push.rocks/smartmongo': 2.0.10(@aws-sdk/credential-providers@3.734.0)(socks@2.8.3)
|
||||
'@push.rocks/smartpath': 5.0.18
|
||||
|
@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@git.zone/tsbundle',
|
||||
version: '2.2.0',
|
||||
version: '2.2.5',
|
||||
description: 'a bundler using rollup for painless bundling of web projects'
|
||||
}
|
||||
|
@ -9,5 +9,6 @@ early.stop();
|
||||
|
||||
// lets make this usable programmatically
|
||||
export * from './tsbundle.class.tsbundle.js';
|
||||
export * from './mod_assets/index.js';
|
||||
export * from './mod_html/index.js';
|
||||
export { runCli };
|
||||
|
@ -8,8 +8,8 @@ export class AssetsHandler {
|
||||
public async ensureAssetsDir() {
|
||||
const assetsDirExists = await plugins.smartfile.fs.isDirectory(this.defaultFromDirPath);
|
||||
if (!assetsDirExists) {
|
||||
console.log(`creating assets directory at ${this.defaultFromDirPath}`);
|
||||
await plugins.smartfile.fs.ensureDir(this.defaultFromDirPath);
|
||||
console.log(`created assets directory at ${this.defaultFromDirPath}`);
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,8 +31,10 @@ export class AssetsHandler {
|
||||
optionsArg.to = plugins.smartpath.transform.toAbsolute(optionsArg.to, paths.cwd) as string;
|
||||
|
||||
// lets clean theh target directory
|
||||
plugins.smartfile.fs.ensureEmptyDir(optionsArg.to);
|
||||
await plugins.smartfile.fs.ensureEmptyDir(optionsArg.to);
|
||||
|
||||
plugins.smartfile.fs.copySync(optionsArg.from, optionsArg.to);
|
||||
plugins.smartfile.fs.copySync(optionsArg.from, optionsArg.to, {
|
||||
replaceTargetDir: true,
|
||||
});
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user