Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 3614169

Browse files
authored
Merge pull request #83 from denis-ilchishin/reset_repo
move to @neematajs
2 parents 0273d17 + c5df792 commit 3614169

31 files changed

Lines changed: 87 additions & 91 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,8 @@ jobs:
3636

3737
- name: Set version and publish
3838
run: |
39-
if [[ "${{ github.event.release.prerelease }}" == true ]]; then
40-
TAG="--tag alpha"
41-
else
42-
TAG=""
43-
fi
4439
pnpm run build
4540
pnpm version ${{ github.event.release.tag_name }} -ws --no-commit-hooks --no-git-tag-version --silent --include-workspace-root || true
46-
pnpm publish --filter "*" --access public --no-git-checks ${TAG}
41+
pnpm -r exec cp ../../README.md ./
42+
pnpm -r exec cp ../../LICENSE.md ./
43+
pnpm publish --filter "*" --access public --no-git-checks

packages/application/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { ApiError, ErrorCode } from '@neemata/common'
1+
export { ApiError, ErrorCode } from '@neematajs/common'
22
export * from './lib/api'
33
export * from './lib/application'
44
export * from './lib/container'

packages/application/lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ApiError, ErrorCode } from '@neemata/common'
1+
import { ApiError, ErrorCode } from '@neematajs/common'
22
import {
33
Container,
44
Dependencies,

packages/application/lib/streams.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StreamMetadata } from '@neemata/common'
1+
import { StreamMetadata } from '@neematajs/common'
22
import { PassThrough, TransformCallback } from 'node:stream'
33

44
export abstract class StreamResponse<

packages/application/lib/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {
22
Subscription as ClientSubscription,
33
UpStream,
4-
} from '@neemata/common'
4+
} from '@neematajs/common'
55
import type { Readable } from 'node:stream'
66
import type { Api, Procedure } from './api'
77
import type { Application } from './application'
@@ -243,7 +243,7 @@ export type ResolveApiInput<Input> = Input extends Readable
243243
export type ResolveApiOutput<Output> = Output extends StreamResponse
244244
? {
245245
payload: JsonPrimitive<Output['payload']>
246-
stream: import('@neemata/common').DownStream<
246+
stream: import('@neematajs/common').DownStream<
247247
Output['chunk'] extends ArrayBuffer
248248
? ArrayBuffer
249249
: JsonPrimitive<Output['chunk']>

packages/application/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@neemata/application",
2+
"name": "@neematajs/application",
33
"author": "ilchishin.denis@gmail.com",
44
"license": "MIT",
55
"description": "Nodejs application adapter",
@@ -25,12 +25,12 @@
2525
"pino-pretty": "^10.2.0"
2626
},
2727
"devDependencies": {
28-
"@neemata/common": "workspace:*",
28+
"@neematajs/common": "workspace:*",
2929
"@sinclair/typebox": "^0.31.0",
3030
"zod": "^3.0.0"
3131
},
3232
"peerDependencies": {
33-
"@neemata/common": "workspace:*",
33+
"@neematajs/common": "workspace:*",
3434
"@sinclair/typebox": "^0.30.0",
3535
"zod": "^3.0.0"
3636
},

packages/application/test/api.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { Application } from '@/application'
1111
import { Provider } from '@/container'
1212
import { EventManager } from '@/events'
1313
import { Scope } from '@/types'
14-
import { ApiError, ErrorCode } from '@neemata/common'
14+
import { ApiError, ErrorCode } from '@neematajs/common'
1515

1616
describe.sequential('Procedure', () => {
1717
let procedure: Procedure

packages/application/test/worker.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ const applicationPath = '@app'
1212

1313
// @ts-ignore
1414
const bc = await vi.hoisted(async () => {
15-
console.log('CREATE BC')
1615
const { EventEmitter } = await import('node:events')
1716
const createPort = (id) => {
1817
const emitter = new EventEmitter()

packages/cli/cli.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
importDefault,
1010
providerWorkerOptions,
1111
watchApp,
12-
} from '@neemata/application'
12+
} from '@neematajs/application'
1313
import dotenv from 'dotenv'
1414
import { register } from 'node:module'
1515
import { resolve } from 'node:path'
@@ -49,7 +49,7 @@ if (env) {
4949
}
5050

5151
const entryPath = resolve(
52-
process.env.NEEMATA_ENTRY || (typeof entry === 'string' ? entry : 'index.js')
52+
process.env.NEEMATA_ENTRY || (typeof entry === 'string' ? entry : 'index.js'),
5353
)
5454

5555
if (swc) {
@@ -83,7 +83,7 @@ if (
8383
!(entryApp instanceof ApplicationServer || entryApp instanceof Application)
8484
) {
8585
throw new Error(
86-
'Invalid entry module. Must be an instance of Application or ApplicationServer'
86+
'Invalid entry module. Must be an instance of Application or ApplicationServer',
8787
)
8888
}
8989

@@ -115,7 +115,7 @@ const commands = {
115115
if (entryApp instanceof ApplicationServer) {
116116
const { applicationPath } = entryApp.options
117117
const type = WorkerType.Task
118-
/** @type {import('@neemata/application').ApplicationWorkerOptions} */
118+
/** @type {import('@neematajs/application').ApplicationWorkerOptions} */
119119
const options = {
120120
id: 0,
121121
type,

packages/cli/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@neemata/cli",
2+
"name": "@neematajs/cli",
33
"author": "ilchishin.denis@gmail.com",
44
"license": "MIT",
55
"description": "Nodejs application server",
@@ -24,9 +24,9 @@
2424
"tsconfig-paths": "^4.2.0"
2525
},
2626
"peerDependencies": {
27-
"@neemata/application": "workspace:*"
27+
"@neematajs/application": "workspace:*"
2828
},
2929
"devDependencies": {
30-
"@neemata/application": "workspace:*"
30+
"@neematajs/application": "workspace:*"
3131
}
3232
}

0 commit comments

Comments
 (0)