mirror of
https://github.com/knex/knex.git
synced 2025-12-29 16:08:45 +00:00
Rename src directory to lib (#3338)
This commit is contained in:
parent
edf1e36e42
commit
9aa7085b05
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,7 +11,6 @@ node_modules
|
||||
test.sqlite3
|
||||
npm-debug.log
|
||||
tmp
|
||||
lib
|
||||
|
||||
# Testing for the knex cli:
|
||||
bin/migrations-folder
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
## How to contribute to Knex.js
|
||||
|
||||
- Make changes in the `/src` directory.
|
||||
- Make changes in the `/lib` directory.
|
||||
|
||||
- Before sending a pull request for a feature or bug fix, be sure to have
|
||||
[tests](https://github.com/tgriesser/knex/tree/master/test). Every pull request that changes the queries should have
|
||||
@ -33,7 +33,7 @@ So if you like to write your own dialect, you can just inherit own dialect from
|
||||
require('sqlite3-offline');
|
||||
const Knex = require('knex');
|
||||
|
||||
const Dialect = require(`knex/src/dialects/sqlite3/index.js`);
|
||||
const Dialect = require(`knex/lib/dialects/sqlite3/index.js`);
|
||||
Dialect.prototype._driver = () => require('sqlite3-offline');
|
||||
|
||||
const knex = Knex({
|
||||
|
||||
@ -125,7 +125,7 @@ function invoke(env) {
|
||||
pending = fs
|
||||
.readFileAsync(
|
||||
path.dirname(env.modulePath) +
|
||||
'/src/migrate/stub/knexfile-' +
|
||||
'/lib/migrate/stub/knexfile-' +
|
||||
type +
|
||||
'.stub'
|
||||
)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
const { DEFAULT_EXT, DEFAULT_TABLE_NAME } = require('./constants');
|
||||
const { resolveClientNameWithAliases } = require('../../src/helpers');
|
||||
const { resolveClientNameWithAliases } = require('../../lib/helpers');
|
||||
const fs = require('fs');
|
||||
const path = require('path');
|
||||
const tildify = require('tildify');
|
||||
|
||||
2
knex.js
2
knex.js
@ -5,4 +5,4 @@
|
||||
// For details and documentation:
|
||||
// http://knexjs.org
|
||||
|
||||
module.exports = require('./src/index');
|
||||
module.exports = require('./lib/index');
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user