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

Now using workspaces to ease the testing of the library locally #123

Merged
merged 5 commits into from
Nov 27, 2023
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
1,498 changes: 1,485 additions & 13 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"type": "git",
"url": "https://github.com/aminnairi/kryptonian.git"
},
"workspaces": [
"template/shared",
"template/client",
"template/server"
],
"keywords": [
"validation",
"functional",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * as Kalel from "./kalel";
export * as Jorel from "./jorel";
export * as Jorel from "./jorel";
2 changes: 1 addition & 1 deletion template/client/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ export const App = () => {
))}
</ul>
);
};
};
2 changes: 1 addition & 1 deletion template/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"vite": "5.0.0"
},
"dependencies": {
"kryptonian": "*",
"kryptonian": "file:../../",
"react": "18.2.0",
"react-dom": "18.2.0"
}
Expand Down
2 changes: 1 addition & 1 deletion template/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"typescript": "5.2.2"
},
"dependencies": {
"kryptonian": "*"
"kryptonian": "file:../../"
}
}
2 changes: 1 addition & 1 deletion template/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ export const routes = Kryptonian.Jorel.createRoutes({
})
])
}
});
});
6 changes: 3 additions & 3 deletions template/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"name": "@template/shared",
"main": "dist/index.js",
"type": "module",
"dependencies": {
"kryptonian": "*"
},
"scripts": {
"dev": "rollup --config rollup.config.ts --configPlugin typescript --environment NODE_ENV:development --watch",
"build": "rollup --config rollup.config.ts --configPlugin typescript --environment NODE_ENV:production"
Expand All @@ -17,5 +14,8 @@
"rollup": "4.5.0",
"tslib": "2.6.2",
"typescript": "5.2.2"
},
"dependencies": {
"kryptonian": "file:../.."
}
}