Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: read the correct version from package.json #60

Merged
merged 3 commits into from
Feb 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"pnpm-lock.yaml",
"package.json"
],
"message": "chore(release): 🚀 ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
],
"branches": ["main"]
}
"branches": [
"main"
]
}
19 changes: 16 additions & 3 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* https://jestjs.io/docs/configuration
*/

import type {Config} from 'jest';
import type { Config } from 'jest';

const config: Config = {
// All imported modules in your tests should be mocked automatically
Expand Down Expand Up @@ -67,7 +67,13 @@ const config: Config = {
// globalTeardown: undefined,

// A set of global variables that need to be available in all test environments
// globals: {},
// globals: {
// 'ts-jest': {
// tsconfig: {
// rootDir: '.'
// }
// },
// },

// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
// maxWorkers: "50%",
Expand Down Expand Up @@ -173,7 +179,14 @@ const config: Config = {

// This option allows use of a custom test runner
// testRunner: "jest-circus/runner",

transform: {
'^.+\\.tsx?$': [
'ts-jest',
{
isolatedModules: true,
},
],
},
// A map from regular expressions to paths to transformers
// transform: undefined,

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ncr",
"version": "0.0.0",
"version": "1.15.0",
"description": "No code REST API server based on zencode natural language smart contracts",
"repository": "https://github.com/forkbombeu/ncr",
"author": {
Expand Down Expand Up @@ -68,6 +68,7 @@
"@rollup/plugin-typescript": "^11.1.6",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^11.1.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/release-notes-generator": "^12.1.0",
"@sinclair/typebox": "^0.32.14",
"@swc/core": "^1.4.2",
Expand Down
27 changes: 27 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ import { statSync } from 'node:fs';
import pino, { type Logger } from 'pino';
import 'dotenv/config';
import { Config } from './types';
import p from '../package.json' with { type: "json" };

export const program = new Command();
const L = pino();
const bads = ['⛔', '💩', '🥶', '💣'];
const bad = bads[Math.floor(Math.random() * bads.length)];

const data = {
name: 'NoCodeRoom',
description:
"The best tool ever for No code API's directly created from human readable Zencode smart contracts inside a live-folder",
version: '1.0.0'
name: p.name,
description: p.description,
version: p.version
};

program
Expand Down
Loading