From 1653e48714139d3f0c37fa2b5a3c9b728b1ff525 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Mon, 21 Oct 2024 14:28:42 +0200 Subject: [PATCH] fix(publishmodule): Fix bug in package.json creation for publish module --- changelog.md | 5 +++ package.json | 2 +- pnpm-lock.yaml | 74 ++++++++++++++++++------------------- ts/00_commitinfo_data.ts | 2 +- ts/classes.publishmodule.ts | 1 + 5 files changed, 45 insertions(+), 39 deletions(-) diff --git a/changelog.md b/changelog.md index 390c831..24e2774 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,10 @@ # Changelog +## 2024-10-21 - 1.2.2 - fix(publishmodule) +Fix bug in package.json creation for publish module + +- Fixed an issue where `package.json` was not being written to the publish module directory. + ## 2024-10-21 - 1.2.1 - fix(package.json) Ensure bin field is properly restructured diff --git a/package.json b/package.json index c3061f5..3f107e2 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "@git.zone/tsrun": "^1.2.46", "@git.zone/tstest": "^1.0.44", "@push.rocks/tapbundle": "^5.0.15", - "@types/node": "^22.7.6" + "@types/node": "^22.7.7" }, "repository": { "type": "git", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e0f3da1..ba5f598 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -35,16 +35,16 @@ importers: version: 2.0.15 '@git.zone/tsrun': specifier: ^1.2.46 - version: 1.2.49(@types/node@22.7.6) + version: 1.2.49(@types/node@22.7.7) '@git.zone/tstest': specifier: ^1.0.44 - version: 1.0.90(@types/node@22.7.6) + version: 1.0.90(@types/node@22.7.7) '@push.rocks/tapbundle': specifier: ^5.0.15 version: 5.3.0 '@types/node': - specifier: ^22.7.6 - version: 22.7.6 + specifier: ^22.7.7 + version: 22.7.7 packages: @@ -812,8 +812,8 @@ packages: '@types/node-forge@1.3.11': resolution: {integrity: sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ==} - '@types/node@22.7.6': - resolution: {integrity: sha512-/d7Rnj0/ExXDMcioS78/kf1lMzYk4BZV8MZGTBKzTGZ6/406ukkbYlIsZmMPhcR5KlkunDHQLrtAVmSq7r+mSw==} + '@types/node@22.7.7': + resolution: {integrity: sha512-SRxCrrg9CL/y54aiMCG3edPKdprgMVGDXjA3gB8UmmBW5TcXzRUYAh8EWzTnSJFAd1rgImPELza+A3bJ+qxz8Q==} '@types/parse5@6.0.3': resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} @@ -3460,22 +3460,22 @@ snapshots: transitivePeerDependencies: - supports-color - '@git.zone/tsrun@1.2.49(@types/node@22.7.6)': + '@git.zone/tsrun@1.2.49(@types/node@22.7.7)': dependencies: '@push.rocks/smartfile': 11.0.21 '@push.rocks/smartshell': 3.0.6 - ts-node: 10.9.2(@types/node@22.7.6)(typescript@5.5.2) + ts-node: 10.9.2(@types/node@22.7.7)(typescript@5.5.2) typescript: 5.5.2 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' - '@types/node' - '@git.zone/tstest@1.0.90(@types/node@22.7.6)': + '@git.zone/tstest@1.0.90(@types/node@22.7.7)': dependencies: '@api.global/typedserver': 3.0.51 '@git.zone/tsbundle': 2.0.15 - '@git.zone/tsrun': 1.2.49(@types/node@22.7.6) + '@git.zone/tsrun': 1.2.49(@types/node@22.7.7) '@push.rocks/consolecolor': 2.0.2 '@push.rocks/smartbrowser': 2.0.6 '@push.rocks/smartdelay': 3.0.5 @@ -4306,14 +4306,14 @@ snapshots: '@types/accepts@1.3.7': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/babel__code-frame@7.0.6': {} '@types/body-parser@1.19.5': dependencies: '@types/connect': 3.4.38 - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/buffer-json@2.0.3': {} @@ -4327,17 +4327,17 @@ snapshots: '@types/clean-css@4.2.11': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 source-map: 0.6.1 '@types/co-body@6.1.3': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/qs': 6.9.16 '@types/connect@3.4.38': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/content-disposition@0.5.8': {} @@ -4350,11 +4350,11 @@ snapshots: '@types/connect': 3.4.38 '@types/express': 5.0.0 '@types/keygrip': 1.0.6 - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/cors@2.8.17': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/debounce@1.2.4': {} @@ -4366,14 +4366,14 @@ snapshots: '@types/express-serve-static-core@4.19.6': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/qs': 6.9.16 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 '@types/express-serve-static-core@5.0.0': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/qs': 6.9.16 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 @@ -4394,21 +4394,21 @@ snapshots: '@types/from2@2.3.5': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/fs-extra@11.0.4': dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/glob@8.1.0': dependencies: '@types/minimatch': 5.1.2 - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/gunzip-maybe@1.4.2': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/hast@3.0.4': dependencies: @@ -4442,7 +4442,7 @@ snapshots: '@types/jsonfile@6.1.4': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/keygrip@1.0.6': {} @@ -4459,7 +4459,7 @@ snapshots: '@types/http-errors': 2.0.4 '@types/keygrip': 1.0.6 '@types/koa-compose': 3.2.8 - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/mdast@4.0.4': dependencies: @@ -4481,9 +4481,9 @@ snapshots: '@types/node-forge@1.3.11': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 - '@types/node@22.7.6': + '@types/node@22.7.7': dependencies: undici-types: 6.19.8 @@ -4504,12 +4504,12 @@ snapshots: '@types/send@0.17.4': dependencies: '@types/mime': 1.3.5 - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/serve-static@1.15.7': dependencies: '@types/http-errors': 2.0.4 - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/send': 0.17.4 '@types/sinon-chai@3.2.12': @@ -4527,11 +4527,11 @@ snapshots: '@types/tar-stream@2.2.3': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/through2@2.0.41': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/trusted-types@2.0.7': {} @@ -4551,15 +4551,15 @@ snapshots: '@types/ws@7.4.7': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/ws@8.5.12': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 '@types/yauzl@2.10.3': dependencies: - '@types/node': 22.7.6 + '@types/node': 22.7.7 optional: true '@ungap/structured-clone@1.2.0': {} @@ -5096,7 +5096,7 @@ snapshots: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.17 - '@types/node': 22.7.6 + '@types/node': 22.7.7 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -6961,14 +6961,14 @@ snapshots: trough@2.2.0: {} - ts-node@10.9.2(@types/node@22.7.6)(typescript@5.5.2): + ts-node@10.9.2(@types/node@22.7.7)(typescript@5.5.2): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 22.7.6 + '@types/node': 22.7.7 acorn: 8.13.0 acorn-walk: 8.3.4 arg: 4.1.3 diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 1e010ee..9d3519d 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@git.zone/tspublish', - version: '1.2.1', + version: '1.2.2', description: 'A tool to publish multiple, concise, and small packages from monorepos, specifically for TypeScript projects within a git environment.' } diff --git a/ts/classes.publishmodule.ts b/ts/classes.publishmodule.ts index 29afe86..c753bbd 100644 --- a/ts/classes.publishmodule.ts +++ b/ts/classes.publishmodule.ts @@ -104,6 +104,7 @@ export class PublishModule { await this.createPackageJson(), 'utf8' ); + await packageJson.write(); // ts folder await plugins.smartfile.fs.copy(this.options.packageSubFolderFullPath, plugins.path.join(this.options.publishModDirFullPath, this.options.packageSubFolder))