Skip to content

Commit 212b937

Browse files
committed
fix: update package name and references to include @Cryxto scope
1 parent dca1b25 commit 212b937

File tree

4 files changed

+19
-17
lines changed

4 files changed

+19
-17
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ jobs:
5050
continue-on-error: true
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53-
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
5453

5554
- name: Update npm
5655
run: npm install -g npm@latest

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to ioc-n-di
1+
# Contributing to @cryxto/ioc-n-di
22

33
Thank you for your interest in contributing to our project! This guide will help you get started with the development process.
44

@@ -55,4 +55,4 @@ Please be respectful and constructive in all interactions within our community.
5555

5656
If you have any questions, please [open an issue](https://github.com/Cryxto/ioc-n-di/issues/new) for discussion.
5757

58-
Thank you for contributing to ioc-n-di!
58+
Thank you for contributing to @cryxto/ioc-n-di!

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ioc-n-di
1+
# @cryxto/ioc-n-di
22

33
A lightweight, type-safe TypeScript IoC (Inversion of Control) container and dependency injection library with decorator support.
44

@@ -18,13 +18,13 @@ A lightweight, type-safe TypeScript IoC (Inversion of Control) container and dep
1818
## Installation
1919

2020
```bash
21-
npm install ioc-n-di reflect-metadata
21+
npm install @cryxto/ioc-n-di reflect-metadata
2222
```
2323

2424
or with bun:
2525

2626
```bash
27-
bun add ioc-n-di reflect-metadata
27+
bun add @cryxto/ioc-n-di reflect-metadata
2828
```
2929

3030
**Important**: This library requires `reflect-metadata` as a peer dependency.
@@ -46,7 +46,7 @@ Add these settings to your `tsconfig.json`:
4646

4747
```typescript
4848
import 'reflect-metadata';
49-
import { Container, Injectable } from 'ioc-n-di';
49+
import { Container, Injectable } from '@cryxto/ioc-n-di';
5050

5151
@Injectable()
5252
class Logger {
@@ -81,7 +81,7 @@ const user = userService.getUser(1);
8181

8282
```typescript
8383
import 'reflect-metadata';
84-
import { Container, Injectable } from 'ioc-n-di';
84+
import { Container, Injectable } from '@cryxto/ioc-n-di';
8585

8686
@Injectable()
8787
class Database {
@@ -113,7 +113,7 @@ repo.findAll();
113113
Use tokens when you need to inject interfaces or specific implementations:
114114

115115
```typescript
116-
import { Container, Injectable, Inject } from 'ioc-n-di';
116+
import { Container, Injectable, Inject } from '@cryxto/ioc-n-di';
117117

118118
// Define tokens
119119
const DATABASE_URL = Symbol('DATABASE_URL');
@@ -156,7 +156,7 @@ service.connect();
156156
Create instances using factory functions:
157157

158158
```typescript
159-
import { Container } from 'ioc-n-di';
159+
import { Container } from '@cryxto/ioc-n-di';
160160

161161
const CONFIG_TOKEN = Symbol('CONFIG');
162162
const HTTP_CLIENT = Symbol('HTTP_CLIENT');
@@ -185,7 +185,7 @@ const httpClient = await container.resolve(HTTP_CLIENT);
185185
Handle circular dependencies using lazy references:
186186

187187
```typescript
188-
import { Container, Injectable, Lazy, LazyRef } from 'ioc-n-di';
188+
import { Container, Injectable, Lazy, LazyRef } from '@cryxto/ioc-n-di';
189189

190190
@Injectable()
191191
class ServiceA {
@@ -223,7 +223,7 @@ serviceA.doSomething();
223223
Execute initialization logic after instantiation:
224224

225225
```typescript
226-
import { Container } from 'ioc-n-di';
226+
import { Container } from '@cryxto/ioc-n-di';
227227

228228
class DatabaseConnection {
229229
isConnected = false;
@@ -252,7 +252,7 @@ console.log(db.isConnected); // true
252252
The easiest way to initialize your application - register and resolve all providers at once:
253253

254254
```typescript
255-
import { Container, Injectable } from 'ioc-n-di';
255+
import { Container, Injectable } from '@cryxto/ioc-n-di';
256256

257257
@Injectable()
258258
class ConfigService {
@@ -302,7 +302,7 @@ await container.bootstrap({
302302
Store custom metadata with your services (useful for plugins, documentation, etc.):
303303

304304
```typescript
305-
import { Injectable, getInjectableMetadata } from 'ioc-n-di';
305+
import { Injectable, getInjectableMetadata } from '@cryxto/ioc-n-di';
306306

307307
@Injectable({
308308
metadata: {
@@ -324,7 +324,7 @@ console.log(metadata?.scope); // 'singleton'
324324
Manually resolve all registered providers in optimal order:
325325

326326
```typescript
327-
import { Container, Injectable } from 'ioc-n-di';
327+
import { Container, Injectable } from '@cryxto/ioc-n-di';
328328

329329
@Injectable()
330330
class ConfigService {}
@@ -465,7 +465,7 @@ container.register({
465465
### Testing
466466

467467
```typescript
468-
import { Container } from 'ioc-n-di';
468+
import { Container } from '@cryxto/ioc-n-di';
469469

470470
describe('MyService', () => {
471471
let container: Container;

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2-
"name": "ioc-n-di",
2+
"name": "@cryxto/ioc-n-di",
33
"version": "0.2.2",
44
"description": "Another Typescript IoC container and dependency injection utility",
55
"homepage": "https://github.com/Cryxto/ioc-n-di#readme",
66
"bugs": {
77
"url": "https://github.com/Cryxto/ioc-n-di/issues"
88
},
99
"license": "MIT",
10+
"publishConfig": {
11+
"access": "public"
12+
},
1013
"files": [
1114
"dist"
1215
],

0 commit comments

Comments
 (0)