Rename src directory to lib (#3338)

This commit is contained in:
Ricardo Graça 2019-07-10 22:48:43 +01:00 committed by Igor Savin
parent edf1e36e42
commit 9aa7085b05
135 changed files with 52 additions and 53 deletions

1
.gitignore vendored
View File

@ -11,7 +11,6 @@ node_modules
test.sqlite3
npm-debug.log
tmp
lib
# Testing for the knex cli:
bin/migrations-folder

View File

@ -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({

View File

@ -125,7 +125,7 @@ function invoke(env) {
pending = fs
.readFileAsync(
path.dirname(env.modulePath) +
'/src/migrate/stub/knexfile-' +
'/lib/migrate/stub/knexfile-' +
type +
'.stub'
)

View File

@ -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');

View File

@ -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