fix(build): modernize package exports, tooling configuration, and test setup
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"@ship.zone/szci": {
|
||||
"npmGlobalTools": [],
|
||||
"npmRegistryUrl": "registry.npmjs.org"
|
||||
},
|
||||
"@git.zone/cli": {
|
||||
"projectType": "npm",
|
||||
"module": {
|
||||
"githost": "code.foss.global",
|
||||
"gitscope": "push.rocks",
|
||||
"gitrepo": "smartyaml",
|
||||
"shortDescription": "YAML parsing utilities",
|
||||
"description": "A module for smart handling of YAML data with support for converting between YAML strings and JavaScript objects.",
|
||||
"npmPackagename": "@push.rocks/smartyaml",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"YAML",
|
||||
"JavaScript",
|
||||
"data serialization",
|
||||
"conversion",
|
||||
"js-yaml",
|
||||
"TypeScript",
|
||||
"nodejs",
|
||||
"parsing",
|
||||
"stringify"
|
||||
]
|
||||
},
|
||||
"release": {
|
||||
"registries": [
|
||||
"https://verdaccio.lossless.digital",
|
||||
"https://registry.npmjs.org"
|
||||
],
|
||||
"accessLevel": "public"
|
||||
}
|
||||
},
|
||||
"@git.zone/tsdoc": {
|
||||
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
# Changelog
|
||||
|
||||
## 2026-05-01 - 3.0.5 - fix(build)
|
||||
modernize package exports, tooling configuration, and test setup
|
||||
|
||||
- add an explicit package exports entry and include project metadata files in published output
|
||||
- migrate npmextra configuration keys to the new scoped tool namespaces and add release registry settings
|
||||
- update build and test tooling dependencies, switch tests to @git.zone/tstest, and align test file naming with the current runner
|
||||
- tighten TypeScript settings with noImplicitAny and explicit typing for YAML stringification input
|
||||
|
||||
## 2026-03-01 - 3.0.4 - maintenance
|
||||
Project metadata and CI-related housekeeping updates across the 3.0.4 release line.
|
||||
|
||||
- Removed `.gitlab-ci.yml`
|
||||
- Updated project description
|
||||
- Summarized trivial release-tag and metadata-only commits for 3.0.4
|
||||
|
||||
## 2024-04-30 - 3.0.1-3.0.3 - core
|
||||
Patch release series with repeated core updates and minor configuration maintenance.
|
||||
|
||||
- Applied repeated `fix(core): update` changes in versions 3.0.1, 3.0.2, and 3.0.3
|
||||
- Updated `tsconfig`
|
||||
- Updated `npmextra.json` githost settings
|
||||
- Summarized release-only commits for versions 3.0.1 through 3.0.3
|
||||
|
||||
## 2022-05-20 - 3.0.0 - core
|
||||
Major runtime update introducing an ESM-based package structure.
|
||||
|
||||
- BREAKING CHANGE: switched package output to ESM
|
||||
- Included follow-up core update in the 3.0.0 release line
|
||||
- Summarized release-only commits for versions 2.0.5, 3.0.0, and 3.0.1
|
||||
|
||||
## 2020-10-26 - 2.0.3-2.0.4 - core
|
||||
Patch release range focused on routine core maintenance updates.
|
||||
|
||||
- Applied repeated `fix(core): update` changes in versions 2.0.3 and 2.0.4
|
||||
- Summarized release-only commits for versions 2.0.3 and 2.0.4
|
||||
|
||||
## 2018-08-27 - 2.0.2 - dependencies
|
||||
Dependency cleanup to remove obsolete typings usage.
|
||||
|
||||
- Removed obsolete `typings-global` import from dependencies
|
||||
- Summarized release-only commit for 2.0.2
|
||||
|
||||
## 2018-08-26 - 2.0.0-2.0.1 - CI
|
||||
Release transition with package publishing configuration updates.
|
||||
|
||||
- Updated CI/npm publishing configuration via `npmextra` access level
|
||||
- Summarized release-only commits for versions 2.0.0 and 2.0.1
|
||||
|
||||
## 2018-08-26 - 1.0.2 - scope
|
||||
Major package identity update with accompanying project documentation improvements.
|
||||
|
||||
- BREAKING CHANGE: migrated to the new `@pushrocks` scope
|
||||
- Improved tests
|
||||
- Added README documentation
|
||||
- Summarized release-only commit for 1.0.2
|
||||
|
||||
## 2017-05-25 - 1.0.0-1.0.1 - setup
|
||||
Initial project setup and packaging metadata for the first public releases.
|
||||
|
||||
- Created the initial working version
|
||||
- Added `npmextra.json`
|
||||
- Summarized release-only commit for 1.0.1
|
||||
@@ -0,0 +1,19 @@
|
||||
Copyright (c) 2026 Task Venture Capital GmbH <hello@task.vc>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
+13
-5
@@ -1,14 +1,15 @@
|
||||
{
|
||||
"npmci": {
|
||||
"globalNpmTools": [],
|
||||
"npmAccessLevel": "public"
|
||||
"@ship.zone/szci": {
|
||||
"npmGlobalTools": [],
|
||||
"npmRegistryUrl": "registry.npmjs.org"
|
||||
},
|
||||
"gitzone": {
|
||||
"@git.zone/cli": {
|
||||
"projectType": "npm",
|
||||
"module": {
|
||||
"githost": "code.foss.global",
|
||||
"gitscope": "push.rocks",
|
||||
"gitrepo": "smartyaml",
|
||||
"shortDescription": "YAML parsing utilities",
|
||||
"description": "A module for smart handling of YAML data with support for converting between YAML strings and JavaScript objects.",
|
||||
"npmPackagename": "@push.rocks/smartyaml",
|
||||
"license": "MIT",
|
||||
@@ -23,9 +24,16 @@
|
||||
"parsing",
|
||||
"stringify"
|
||||
]
|
||||
},
|
||||
"release": {
|
||||
"registries": [
|
||||
"https://verdaccio.lossless.digital",
|
||||
"https://registry.npmjs.org"
|
||||
],
|
||||
"accessLevel": "public"
|
||||
}
|
||||
},
|
||||
"tsdoc": {
|
||||
"@git.zone/tsdoc": {
|
||||
"legal": "\n## License and Legal Information\n\nThis repository contains open-source code that is licensed under the MIT License. A copy of the MIT License can be found in the [license](license) file within this repository. \n\n**Please note:** The MIT License does not grant permission to use the trade names, trademarks, service marks, or product names of the project, except as required for reasonable and customary use in describing the origin of the work and reproducing the content of the NOTICE file.\n\n### Trademarks\n\nThis project is owned and maintained by Task Venture Capital GmbH. The names and logos associated with Task Venture Capital GmbH and any related products or services are trademarks of Task Venture Capital GmbH and are not included within the scope of the MIT license granted herein. Use of these trademarks must comply with Task Venture Capital GmbH's Trademark Guidelines, and any usage must be approved in writing by Task Venture Capital GmbH.\n\n### Company Information\n\nTask Venture Capital GmbH \nRegistered at District court Bremen HRB 35230 HB, Germany\n\nFor any legal inquiries or if you require further information, please contact us via email at hello@task.vc.\n\nBy using this repository, you acknowledge that you have read this section, agree to comply with its terms, and understand that the licensing of the code does not imply endorsement by Task Venture Capital GmbH of any derivative works.\n"
|
||||
}
|
||||
}
|
||||
+13
-10
@@ -3,12 +3,15 @@
|
||||
"version": "3.0.4",
|
||||
"private": false,
|
||||
"description": "A module for smart handling of YAML data with support for converting between YAML strings and JavaScript objects.",
|
||||
"exports": {
|
||||
".": "./dist_ts/index.js"
|
||||
},
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.ts",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"test": "(tstest test/ --web)",
|
||||
"build": "(tsbuild --web --allowimplicitany)"
|
||||
"test": "tstest test/",
|
||||
"build": "tsbuild --web"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
@@ -25,21 +28,19 @@
|
||||
"parsing",
|
||||
"stringify"
|
||||
],
|
||||
"author": "Lossless GmbH",
|
||||
"author": "Task Venture Capital GmbH <hello@task.vc>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://gitlab.com/pushrocks/smartyaml/issues"
|
||||
"url": "https://code.foss.global/push.rocks/smartyaml/issues"
|
||||
},
|
||||
"homepage": "https://code.foss.global/push.rocks/smartyaml",
|
||||
"dependencies": {
|
||||
"yaml": "^2.4.2"
|
||||
"yaml": "^2.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^2.1.61",
|
||||
"@git.zone/tsrun": "^1.2.32",
|
||||
"@git.zone/tstest": "^1.0.71",
|
||||
"@push.rocks/tapbundle": "^5.0.3",
|
||||
"@types/node": "^20.12.7"
|
||||
"@git.zone/tsbuild": "^4.4.0",
|
||||
"@git.zone/tstest": "^3.6.3",
|
||||
"@types/node": "^25.6.0"
|
||||
},
|
||||
"browserslist": [
|
||||
"last 1 chrome versions"
|
||||
@@ -53,6 +54,8 @@
|
||||
"dist_ts_web/**/*",
|
||||
"assets/**/*",
|
||||
"cli.js",
|
||||
".smartconfig.json",
|
||||
"license",
|
||||
"npmextra.json",
|
||||
"readme.md"
|
||||
]
|
||||
|
||||
Generated
+6903
-4088
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
import { expect, tap } from '@push.rocks/tapbundle';
|
||||
import { expect, tap } from '@git.zone/tstest/tapbundle';
|
||||
|
||||
import * as smartyaml from '../ts/index.js';
|
||||
|
||||
@@ -25,4 +25,4 @@ tap.test('should allow dots in key', async () => {
|
||||
expect(testObject['myKey.with.dots']).toEqual('some');
|
||||
});
|
||||
|
||||
tap.start();
|
||||
export default tap.start();
|
||||
@@ -1,8 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
* autocreated commitinfo by @push.rocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@push.rocks/smartyaml',
|
||||
version: '3.0.4',
|
||||
version: '3.0.5',
|
||||
description: 'A module for smart handling of YAML data with support for converting between YAML strings and JavaScript objects.'
|
||||
}
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@ export let yamlStringToObject = async (
|
||||
};
|
||||
|
||||
export let objectToYamlString = async (
|
||||
objectArg
|
||||
objectArg: unknown
|
||||
): Promise<string> => {
|
||||
return plugins.yaml.stringify(objectArg);
|
||||
};
|
||||
|
||||
export let getYamlDocFromString = async (stringArg: string) => {
|
||||
return plugins.yaml.parseDocument(stringArg);
|
||||
}
|
||||
};
|
||||
|
||||
+3
-1
@@ -5,8 +5,10 @@
|
||||
"target": "ES2022",
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"noImplicitAny": true,
|
||||
"esModuleInterop": true,
|
||||
"verbatimModuleSyntax": true
|
||||
"verbatimModuleSyntax": true,
|
||||
"types": ["node"]
|
||||
},
|
||||
"exclude": [
|
||||
"dist_*/**/*.d.ts"
|
||||
|
||||
Reference in New Issue
Block a user