Skip to content

Commit

Permalink
Merge pull request #1 from p10ns11y/prepare-multi-pack
Browse files Browse the repository at this point in the history
Introduce multi pack
  • Loading branch information
p10ns11y authored Nov 6, 2024
2 parents e115ffb + 5068fed commit 33bb5b7
Show file tree
Hide file tree
Showing 13 changed files with 2,316 additions and 393 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish on Version Change

on:
push:
branches:
- main
paths:
- 'package.json'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Build project

run: npx trubo run build

- name: Publish to GitHub Packages
working-directory: packages/core
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm publish --registry=https://npm.pkg.github.com/

- name: Publish to npm
working-directory: packages/core
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --registry=https://registry.npmjs.org/ --access public
2,543 changes: 2,188 additions & 355 deletions package-lock.json

Large diffs are not rendered by default.

51 changes: 14 additions & 37 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,29 @@
{
"name": "adaptate",
"version": "0.0.6",
"workspaces": [
"packages/*"
],
"version": "0.0.7",
"author": {
"name": "Peramanathan Sathyamoorthy",
"url": "https://github.com/p10ns11y/adaptate.git"
},
"repository": {
"type": "git",
"url": "git+https://github.com/p10ns11y/adaptate.git"
},
"bugs": {
"url": "https://github.com/p10ns11y/adaptate/issues"
},
"homepage": "https://github.com/p10ns11y/adaptate#readme",
"license": "MIT",
"type": "module",
"main": "./build/index.es.js",
"types": "./build/index.d.ts",
"scripts": {
"test": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --coverage",
"build": "vite build",
"check-types": "tsc --noEmit"
},
"dependencies": {
"zod": "^3.23.8"
"build": "turbo run build"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@types/jest": "^29.5.14",
"@types/js-yaml": "^4.0.9",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"ts-jest": "^29.2.5",
"turbo": "^2.2.3",
"vite": "^5.4.10"
},
"peerDependencies": {
"zod": "^3.23.8"
"turbo": "^2.2.3"
},
"packageManager": "[email protected]",
"files": [
"build",
"src",
"package.json",
"README.md"
],
"exports": {
".": {
"types": "./src/index.ts",
"default": "./build/index.es.js"
},
"./check-model": {
"types": "./src/check-model.ts",
"default": "./build/check-model.es.js"
}
},
"description": "Dynamic and Adaptable Model Validator Using Zod, Interoperable with OpenAPI",
"keywords": [
"Zod",
Expand Down
72 changes: 72 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"name": "@adaptate/core",
"version": "0.0.7",
"author": {
"name": "Peramanathan Sathyamoorthy",
"url": "https://github.com/p10ns11y/adaptate.git"
},
"repository": {
"type": "git",
"url": "git+https://github.com/p10ns11y/adaptate.git"
},
"bugs": {
"url": "https://github.com/p10ns11y/adaptate/issues"
},
"homepage": "https://github.com/p10ns11y/adaptate#readme",
"license": "MIT",
"type": "module",
"source": "./src/index.ts",
"main": "./build/index.es.js",
"types": "./build/index.d.ts",
"scripts": {
"test": "node --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js --coverage",
"build": "vite build",
"check-types": "tsc --noEmit"
},
"dependencies": {
"zod": "^3.23.8"
},
"devDependencies": {
"@apidevtools/swagger-parser": "^10.1.0",
"@github/local-action": "^2.1.3",
"@types/jest": "^29.5.14",
"@types/js-yaml": "^4.0.9",
"jest": "^29.7.0",
"js-yaml": "^4.1.0",
"ts-jest": "^29.2.5",
"vite": "^5.4.10"
},
"peerDependencies": {
"zod": "^3.23.8"
},
"packageManager": "[email protected]",
"files": [
"build",
"package.json",
"README.md"
],
"exports": {
".": {
"types": "./src/index.ts",
"default": "./build/index.es.js"
}
},
"description": "Dynamic and Adaptable Model Validator Using Zod, Interoperable with OpenAPI",
"keywords": [
"Zod",
"OpenAPI",
"Schema Validation",
"JSON Schema",
"TypeScript",
"Dynamic Validation",
"Conditional Requirements",
"React Hooks",
"Data Validation",
"API Integration",
"Model Validator",
"Schema Transformation",
"Runtime Validation",
"Component Props Validation",
"Business Data Abstraction"
]
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"esModuleInterop": true,
"outDir": "./dist"
},
"include": ["src/**/*.ts", "tests/**/*.ts"],
"include": ["packages/core/src/**/*.ts", "tests/**/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit 33bb5b7

Please sign in to comment.