UNPKG

knex-automigrate

Version:

Table schema based database migration tool, built on top of the knex.js

75 lines (74 loc) 2.27 kB
{ "name": "knex-automigrate", "version": "0.2.0", "description": "Table schema based database migration tool, built on top of the knex.js", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "build": "tsc", "pretest": "tsc", "test": "jest --coverage --detectOpenHandles --runInBand", "test:migrate": "node bin/cli.js migrate:auto --safe --knexfile ./test/migration/knex.config.js --cwd ./test/migration", "check": "npm-check", "lint": "eslint ./", "lintfix": "eslint ./ --fix", "prepare": "npm run build", "release:patch": "npm version patch --no-git-tag-version", "prerelease": "git diff --exit-code", "release": "npm run release:patch && export RELEASE_VER=$(node -e \"console.log(require('./package.json').version)\") && git checkout -b feature/bump-ver_${RELEASE_VER} && git add . && git commit -m \"Bump version, v${RELEASE_VER}\" &&git tag -a v${RELEASE_VER} -m \"Release version, v${RELEASE_VER}\" && git push --set-upstream origin feature/bump-ver_${RELEASE_VER} && git push origin v${RELEASE_VER}" }, "repository": { "type": "git", "url": "git+https://github.com/why2pac/knex-automigrate.git" }, "keywords": [ "nodejs", "knexjs", "database", "orm", "table", "migration", "typescript" ], "dependencies": { "chalk": "^4.1.2", "commander": "^14.0.3", "liftoff": "^5.0.1", "minimist": "^1.2.8", "tildify": "^2.0.0" }, "peerDependencies": { "knex": "^3.1.0" }, "devDependencies": { "@eslint/eslintrc": "^3.3.5", "@types/jest": "^30.0.0", "@types/node": "^22.15.0", "eslint": "^10.1.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-import": "^2.32.0", "globals": "^17.4.0", "jest": "^30.3.0", "knex": "^3.1.0", "mysql": "^2.18.1", "mysql2": "^3.20.0", "ts-jest": "^29.4.6", "ts-node": "^10.9.2", "typescript": "^5.8.0" }, "bin": { "knex-automigrate": "./bin/cli.js" }, "files": [ "README.md", "bin/*", "dist/**/*", "LICENSE" ], "author": "why2pac", "license": "MIT", "bugs": { "url": "https://github.com/why2pac/knex-automigrate/issues" }, "homepage": "https://github.com/why2pac/knex-automigrate#readme" }