Skip to content
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/monorepo",
"version": "4.1.2-beta.20",
"version": "4.1.2-beta.24",
"private": true,
"description": "Eggjs framework monorepo",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/cluster/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/cluster",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "cluster manager for egg",
"keywords": [
"cluster",
Expand Down
2 changes: 1 addition & 1 deletion packages/cookies/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/cookies",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "cookies module for egg",
"homepage": "https://github.com/eggjs/egg/tree/next/packages/cookies",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/core",
"version": "7.0.2-beta.20",
"version": "7.0.2-beta.24",
"description": "A core plugin framework based on @eggjs/koa",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion packages/egg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "egg",
"version": "4.1.2-beta.20",
"version": "4.1.2-beta.24",
"description": "A web application framework for Node.js",
"keywords": [
"app",
Expand Down
2 changes: 1 addition & 1 deletion packages/errors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/errors",
"version": "3.0.2-beta.20",
"version": "3.0.2-beta.24",
"description": "@eggjs/errors provide two kinds of errors that is Error and Exception.",
"homepage": "https://github.com/eggjs/egg/tree/next/packages/errors",
"bugs": {
Expand Down
2 changes: 1 addition & 1 deletion packages/extend2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/extend2",
"version": "5.0.2-beta.20",
"version": "5.0.2-beta.24",
"description": "Port of jQuery.extend for Node.js",
"keywords": [
"clone",
Expand Down
2 changes: 1 addition & 1 deletion packages/koa-static-cache/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/koa-static-cache",
"version": "7.0.2-beta.20",
"version": "7.0.2-beta.24",
"description": "Static cache middleware for koa",
"keywords": [
"cache",
Expand Down
2 changes: 1 addition & 1 deletion packages/koa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/koa",
"version": "3.1.2-beta.20",
"version": "3.1.2-beta.24",
"description": "Koa web app framework for https://eggjs.org",
"keywords": [
"app",
Expand Down
2 changes: 1 addition & 1 deletion packages/loader-fs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/loader-fs",
"version": "1.0.0-beta.20",
"version": "1.0.0-beta.24",
"description": "Loader-facing filesystem abstraction for Egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/logger",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "egg logger",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion packages/path-matching/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/path-matching",
"version": "3.0.2-beta.20",
"version": "3.0.2-beta.24",
"description": "match or ignore url path",
"keywords": [
"ignore",
Expand Down
2 changes: 1 addition & 1 deletion packages/router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/router",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "Router middleware for egg/koa. Provides RESTful resource routing.",
"keywords": [
"koa",
Expand Down
2 changes: 1 addition & 1 deletion packages/skills/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/skills",
"version": "4.1.2-beta.20",
"version": "4.1.2-beta.24",
"description": "agent skills for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion packages/supertest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/supertest",
"version": "9.0.2-beta.20",
"version": "9.0.2-beta.24",
"description": "SuperAgent driven library for testing HTTP servers",
"keywords": [
"bdd",
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/tsconfig",
"version": "3.1.2-beta.20",
"version": "3.1.2-beta.24",
"description": "Base tsconfig for egg ts project",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion packages/typings/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/typings",
"version": "4.1.2-beta.20",
"version": "4.1.2-beta.24",
"description": "Shared typings for egg projects",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/utils",
"version": "5.0.2-beta.20",
"version": "5.0.2-beta.24",
"description": "Utils for all egg projects",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/development/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/development",
"version": "5.0.2-beta.20",
"version": "5.0.2-beta.24",
"description": "development tool for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/i18n",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "i18n plugin for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/jsonp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/jsonp",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "jsonp support for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/logrotator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/logrotator",
"version": "5.0.2-beta.20",
"version": "5.0.2-beta.24",
"description": "logrotator for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/mock/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/mock",
"version": "7.0.2-beta.20",
"version": "7.0.2-beta.24",
"description": "mock server plugin for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/multipart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/multipart",
"version": "5.0.2-beta.20",
"version": "5.0.2-beta.24",
"description": "Multipart plugin for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/onerror/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/onerror",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "error handler for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/redis/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/redis",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "Valkey / Redis plugin for egg",
"keywords": [
"Valkey",
Expand Down
2 changes: 1 addition & 1 deletion plugins/schedule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/schedule",
"version": "6.0.2-beta.20",
"version": "6.0.2-beta.24",
"description": "schedule plugin for egg, support corn job.",
"keywords": [
"cron",
Expand Down
2 changes: 1 addition & 1 deletion plugins/security/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/security",
"version": "5.0.2-beta.20",
"version": "5.0.2-beta.24",
"description": "security plugin in egg framework",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/session/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/session",
"version": "5.0.2-beta.20",
"version": "5.0.2-beta.24",
"description": "session plugin for egg",
"keywords": [
"cookie",
Expand Down
2 changes: 1 addition & 1 deletion plugins/static/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/static",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "static server plugin for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/tracer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/tracer",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tracer for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/typebox-validate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/typebox-validate",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "another validate for typescript egg projects",
"keywords": [
"ajv",
Expand Down
2 changes: 1 addition & 1 deletion plugins/view-nunjucks/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/view-nunjucks",
"version": "3.0.2-beta.20",
"version": "3.0.2-beta.24",
"description": "nunjucks view plugin for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/view/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/view",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "Base view plugin for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion plugins/watcher/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/watcher",
"version": "5.0.2-beta.20",
"version": "5.0.2-beta.24",
"description": "file watcher plugin for egg",
"keywords": [
"egg",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/agent-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/agent-runtime",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "Agent runtime with store abstraction for Egg.js tegg",
"keywords": [
"agent",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/ajv-decorator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/ajv-decorator",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tegg ajv decorator",
"keywords": [
"ajv",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/aop-decorator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/aop-decorator",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tegg aop decorator",
"keywords": [
"aop",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/aop-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/aop-runtime",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tegg aop runtime",
"keywords": [
"aop",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/background-task/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/background-task",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "background task util for tegg",
"keywords": [
"async",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/common-util/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/tegg-common-util",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "common util for tegg",
"keywords": [
"collection",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/controller-decorator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/controller-decorator",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tegg controller decorator",
"keywords": [
"controller",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/core-decorator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/core-decorator",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tegg core decorator",
"keywords": [
"decorator",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/dal-decorator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/dal-decorator",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tegg dal decorator",
"keywords": [
"dal",
Expand Down
2 changes: 1 addition & 1 deletion tegg/core/dal-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/dal-runtime",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tegg dal runtime",
"keywords": [
"dal",
Expand Down
10 changes: 10 additions & 0 deletions tegg/core/dal-runtime/test/CodeGenerator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ import { MultiPrimaryKey } from './fixtures/modules/generate_codes/MultiPrimaryK
const execFileAsync = promisify(execFile);

describe('test/CodeGenerator.test.ts', () => {
it('should configure templates as build assets', async () => {
const config = (await import('../tsdown.config.ts')).default as any;
assert.deepEqual(config.copy, [
{
from: 'src/templates',
to: 'dist/templates',
},
]);
});

it('should load templates under native ESM runtime', async () => {
const repoDir = path.resolve(__dirname, '../../../..');
const moduleDir = path.join(__dirname, './fixtures/modules/generate_codes');
Expand Down
6 changes: 6 additions & 0 deletions tegg/core/dal-runtime/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,10 @@ export default defineConfig({
entry: {
index: 'src/index.ts',
},
copy: [
{
from: 'src/templates',
to: 'dist/templates',
},
],
});
2 changes: 1 addition & 1 deletion tegg/core/dynamic-inject-runtime/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eggjs/dynamic-inject-runtime",
"version": "4.0.2-beta.20",
"version": "4.0.2-beta.24",
"description": "tegg dynamic inject runtime",
"keywords": [
"egg",
Expand Down
Loading
Loading