diff --git a/package.json b/package.json index 94e8a3f5..2b06d45c 100644 --- a/package.json +++ b/package.json @@ -55,57 +55,57 @@ "index:commands": "adonis-kit index build/commands" }, "dependencies": { - "@faker-js/faker": "^8.0.1", - "@poppinss/hooks": "^7.1.1-4", - "@poppinss/macroable": "^1.0.0-0", - "@poppinss/utils": "^6.5.0-6", + "@faker-js/faker": "^8.2.0", + "@poppinss/hooks": "^7.2.0", + "@poppinss/macroable": "^1.0.0", + "@poppinss/utils": "^6.5.0", "fast-deep-equal": "^3.1.3", "igniculus": "^1.5.0", "kleur": "^4.1.5", - "knex": "^2.4.2", - "knex-dynamic-connection": "^3.1.0", + "knex": "^3.0.1", + "knex-dynamic-connection": "^3.1.1", "pretty-hrtime": "^1.0.3", "qs": "^6.11.2", "slash": "^5.1.0", "tarn": "^3.0.2" }, "devDependencies": { - "@adonisjs/assembler": "^6.1.3-22", - "@adonisjs/core": "^6.1.5-26", + "@adonisjs/assembler": "^6.1.3-25", + "@adonisjs/core": "^6.1.5-29", "@adonisjs/eslint-config": "^1.1.8", "@adonisjs/prettier-config": "^1.1.8", "@adonisjs/tsconfig": "^1.1.8", - "@commitlint/cli": "^17.7.1", - "@commitlint/config-conventional": "^17.7.0", - "@japa/assert": "^2.0.0-1", - "@japa/file-system": "^2.0.0-1", - "@japa/runner": "^3.0.0-7", + "@commitlint/cli": "^17.8.0", + "@commitlint/config-conventional": "^17.8.0", + "@japa/assert": "^2.0.0", + "@japa/file-system": "^2.0.0", + "@japa/runner": "^3.0.4", "@swc/core": "1.3.82", - "@types/chance": "^1.1.4", - "@types/luxon": "^3.3.0", - "@types/node": "^20.6.2", - "@types/pluralize": "^0.0.30", - "@types/pretty-hrtime": "^1.0.1", - "@types/qs": "^6.9.7", - "better-sqlite3": "^8.4.0", + "@types/chance": "^1.1.5", + "@types/luxon": "^3.3.3", + "@types/node": "^20.8.7", + "@types/pluralize": "^0.0.32", + "@types/pretty-hrtime": "^1.0.2", + "@types/qs": "^6.9.9", + "better-sqlite3": "^9.0.0", "c8": "^8.0.1", "chance": "^1.1.11", "copyfiles": "^2.4.1", "cross-env": "^7.0.3", "del-cli": "^5.0.0", "dotenv": "^16.0.3", - "eslint": "^8.41.0", + "eslint": "^8.51.0", "fs-extra": "^11.1.1", "github-label-sync": "^2.3.1", "husky": "^8.0.3", "luxon": "^3.4.3", - "mysql2": "^3.3.1", + "mysql2": "^3.6.2", "np": "^8.0.4", "pg": "^8.11.0", "prettier": "^3.0.3", "reflect-metadata": "^0.1.13", "sqlite3": "^5.1.6", - "tedious": "^16.1.0", + "tedious": "^16.5.0", "ts-node": "^10.9.1", "typescript": "^5.2.2" }, diff --git a/stubs/config.stub b/stubs/config.stub index 076ab773..8461600d 100644 --- a/stubs/config.stub +++ b/stubs/config.stub @@ -1,6 +1,6 @@ ---- -to: {{ app.configPath('database.ts') }} ---- +{{{ + exports({ to: app.configPath('database.ts') }) +}}} import env from '#start/env' {{#if dialect === 'sqlite'}} import app from '@adonisjs/core/services/app' diff --git a/stubs/factories/index.txt b/stubs/factories/index.txt deleted file mode 100644 index 25f391a2..00000000 --- a/stubs/factories/index.txt +++ /dev/null @@ -1 +0,0 @@ -import factory from '@adonisjs/lucid/factories' diff --git a/stubs/make/factory/main.stub b/stubs/make/factory/main.stub index 8a9e426b..43d4f166 100644 --- a/stubs/make/factory/main.stub +++ b/stubs/make/factory/main.stub @@ -3,9 +3,11 @@ {{#var modelName = generators.modelName(model.name)}} {{#var modelFileName = generators.modelFileName(model.name)}} {{#var modelImportPath = generators.importPath('#models', model.path, modelFileName.replace(/\.ts$/, ''))}} ---- -to: {{ app.factoriesPath(entity.path, factoryFileName) }} ---- +{{{ + exports({ + to: app.factoriesPath(entity.path, factoryFileName) + }) +}}} import factory from '@adonisjs/lucid/factories' import {{ modelName }} from '{{ modelImportPath }}' diff --git a/stubs/make/migration/alter.stub b/stubs/make/migration/alter.stub index 5b20b1bd..b71a5d19 100644 --- a/stubs/make/migration/alter.stub +++ b/stubs/make/migration/alter.stub @@ -1,6 +1,8 @@ ---- -to: {{ app.makePath(migration.folder, entity.path, migration.fileName) }} ---- +{{{ + exports({ + to: app.makePath(migration.folder, entity.path, migration.fileName) + }) +}}} import { BaseSchema } from '@adonisjs/lucid/schema' export default class extends BaseSchema { diff --git a/stubs/make/migration/create.stub b/stubs/make/migration/create.stub index 12c582d1..111e76c5 100644 --- a/stubs/make/migration/create.stub +++ b/stubs/make/migration/create.stub @@ -1,6 +1,8 @@ ---- -to: {{ app.makePath(migration.folder, entity.path, migration.fileName) }} ---- +{{{ + exports({ + to: app.makePath(migration.folder, entity.path, migration.fileName) + }) +}}} import { BaseSchema } from '@adonisjs/lucid/schema' export default class extends BaseSchema { diff --git a/stubs/make/model/main.stub b/stubs/make/model/main.stub index b994560d..97e15a07 100644 --- a/stubs/make/model/main.stub +++ b/stubs/make/model/main.stub @@ -1,8 +1,10 @@ {{#var modelName = generators.modelName(entity.name)}} {{#var modelFileName = generators.modelFileName(entity.name)}} ---- -to: {{ app.modelsPath(entity.path, modelFileName) }} ---- +{{{ + exports({ + to: app.modelsPath(entity.path, modelFileName) + }) +}}} import { DateTime } from 'luxon' import { BaseModel, column } from '@adonisjs/lucid/orm' diff --git a/stubs/make/seeder/main.stub b/stubs/make/seeder/main.stub index e520f649..76a5799d 100644 --- a/stubs/make/seeder/main.stub +++ b/stubs/make/seeder/main.stub @@ -1,7 +1,9 @@ {{#var seederFileName = generators.seederFileName(entity.name)}} ---- -to: {{ app.seedersPath(entity.path, seederFileName) }} ---- +{{{ + exports({ + to: app.seedersPath(entity.path, seederFileName) + }) +}}} import { BaseSeeder } from '@adonisjs/lucid/seeders' export default class extends BaseSeeder {