@jorgebodega/typeorm-seeding 6.0.1 → 7.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +34 -0
- package/CHANGELOG.md +35 -0
- package/dist/cli.js +2 -4
- package/dist/cli.js.map +1 -1
- package/dist/commands/seed.command.js +20 -25
- package/dist/commands/seed.command.js.map +1 -1
- package/dist/datasource/DataSourceManager.d.ts +1 -1
- package/dist/datasource/DataSourceManager.js +5 -7
- package/dist/datasource/DataSourceManager.js.map +1 -1
- package/dist/datasource/configureDataSource.js +3 -7
- package/dist/datasource/configureDataSource.js.map +1 -1
- package/dist/datasource/fetchDataSource.js +3 -7
- package/dist/datasource/fetchDataSource.js.map +1 -1
- package/dist/datasource/index.js +2 -5
- package/dist/datasource/index.js.map +1 -1
- package/dist/errors/DataSourceImportationError.js +1 -5
- package/dist/errors/DataSourceImportationError.js.map +1 -1
- package/dist/errors/DataSourceNotProvidedError.js +1 -5
- package/dist/errors/DataSourceNotProvidedError.js.map +1 -1
- package/dist/errors/SeederExecutionError.js +1 -5
- package/dist/errors/SeederExecutionError.js.map +1 -1
- package/dist/errors/SeederImportationError.js +1 -5
- package/dist/errors/SeederImportationError.js.map +1 -1
- package/dist/errors/index.js +4 -7
- package/dist/errors/index.js.map +1 -1
- package/dist/helpers/index.js +2 -5
- package/dist/helpers/index.js.map +1 -1
- package/dist/helpers/useDataSource.js +3 -7
- package/dist/helpers/useDataSource.js.map +1 -1
- package/dist/helpers/useSeeders.d.ts +1 -1
- package/dist/helpers/useSeeders.js +3 -7
- package/dist/helpers/useSeeders.js.map +1 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/dist/seeder.js +1 -5
- package/dist/seeder.js.map +1 -1
- package/dist/types.js +1 -2
- package/dist/utils/commandUtils.d.ts +1 -1
- package/dist/utils/commandUtils.js +6 -33
- package/dist/utils/commandUtils.js.map +1 -1
- package/dist/utils/fileHandling.js +3 -7
- package/dist/utils/fileHandling.js.map +1 -1
- package/dist/utils/index.js +2 -5
- package/dist/utils/index.js.map +1 -1
- package/package.json +25 -24
- package/pnpm-lock.yaml +0 -4474
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"env": {
|
|
3
|
+
"jest": true,
|
|
4
|
+
"node": true
|
|
5
|
+
},
|
|
6
|
+
"extends": [
|
|
7
|
+
"eslint:recommended",
|
|
8
|
+
"plugin:@typescript-eslint/recommended",
|
|
9
|
+
"plugin:import/recommended",
|
|
10
|
+
"plugin:import/typescript",
|
|
11
|
+
"prettier"
|
|
12
|
+
],
|
|
13
|
+
"parser": "@typescript-eslint/parser",
|
|
14
|
+
"parserOptions": {
|
|
15
|
+
"project": "tsconfig.json",
|
|
16
|
+
"sourceType": "module"
|
|
17
|
+
},
|
|
18
|
+
"plugins": [
|
|
19
|
+
"@typescript-eslint"
|
|
20
|
+
],
|
|
21
|
+
"rules": {
|
|
22
|
+
"@typescript-eslint/interface-name-prefix": "off",
|
|
23
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
24
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
25
|
+
"import/order": [
|
|
26
|
+
"warn",
|
|
27
|
+
{
|
|
28
|
+
"alphabetize": {
|
|
29
|
+
"order": "asc"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
# [7.0.0-next.2](https://github.com/jorgebodega/typeorm-seeding/compare/v7.0.0-next.1...v7.0.0-next.2) (2024-02-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update dependency commander to v12 ([12a46b1](https://github.com/jorgebodega/typeorm-seeding/commit/12a46b1f791755b8d57d3a1ecd3bd984984566d9))
|
|
7
|
+
|
|
8
|
+
# [7.0.0-next.1](https://github.com/jorgebodega/typeorm-seeding/compare/v6.0.1...v7.0.0-next.1) (2023-10-30)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* deprecation messages ([e523142](https://github.com/jorgebodega/typeorm-seeding/commit/e5231421610e92145779d798996dbddb62ee3d38))
|
|
14
|
+
* eslint ([769263d](https://github.com/jorgebodega/typeorm-seeding/commit/769263d29ee1c8240b24ce2523229d02e621044d))
|
|
15
|
+
* update dependency commander to v10 ([b43eca4](https://github.com/jorgebodega/typeorm-seeding/commit/b43eca4c4106557d95e70a95a8d08141ca65b389))
|
|
16
|
+
* update dependency commander to v11 ([4eec67d](https://github.com/jorgebodega/typeorm-seeding/commit/4eec67d5390dfafbc42ad0ea68f68bb7b3b1936e))
|
|
17
|
+
* update dependency glob to v10 ([859da14](https://github.com/jorgebodega/typeorm-seeding/commit/859da145303cc0ccc24dced4f1940c9ec8fb7a44))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### chore
|
|
21
|
+
|
|
22
|
+
* bump minimum node version ([c08c2b2](https://github.com/jorgebodega/typeorm-seeding/commit/c08c2b273d9eddc8fe1ce3d9b294c2e5f7e4c7df))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* upgrade node version ([b895adb](https://github.com/jorgebodega/typeorm-seeding/commit/b895adbac1ce2a541c02b78bd229f6081362950b))
|
|
28
|
+
* upgrade typescript ([af5c2f7](https://github.com/jorgebodega/typeorm-seeding/commit/af5c2f76addd352e00538ea198e1ae794def5160))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### BREAKING CHANGES
|
|
32
|
+
|
|
33
|
+
* remove support for node 16
|
|
34
|
+
* now Node 14 (lts) and 17 are out-of-life
|
|
35
|
+
|
|
1
36
|
## [6.0.1](https://github.com/jorgebodega/typeorm-seeding/compare/v6.0.0...v6.0.1) (2023-01-03)
|
|
2
37
|
|
|
3
38
|
# [6.0.0-next.5](https://github.com/jorgebodega/typeorm-seeding/compare/v6.0.0-next.4...v6.0.0-next.5) (2023-01-03)
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
const seed_command_1 = require("./commands/seed.command");
|
|
2
|
+
import { bootstrap } from './commands/seed.command';
|
|
5
3
|
/* istanbul ignore file */
|
|
6
|
-
|
|
4
|
+
bootstrap(process.argv);
|
|
7
5
|
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,0BAA0B;AAC1B,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA"}
|
|
@@ -1,64 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const DataSourceImportationError_1 = require("../errors/DataSourceImportationError");
|
|
10
|
-
const SeederExecutionError_1 = require("../errors/SeederExecutionError");
|
|
11
|
-
const helpers_1 = require("../helpers");
|
|
12
|
-
const utils_1 = require("../utils");
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { Command } from 'commander';
|
|
3
|
+
import ora from 'ora';
|
|
4
|
+
import { SeederImportationError } from '../errors';
|
|
5
|
+
import { DataSourceImportationError } from '../errors/DataSourceImportationError';
|
|
6
|
+
import { SeederExecutionError } from '../errors/SeederExecutionError';
|
|
7
|
+
import { useDataSource, useSeeders } from '../helpers';
|
|
8
|
+
import { calculateFilePath, CommandUtils } from '../utils';
|
|
13
9
|
async function run(paths) {
|
|
14
10
|
const opts = seedCommand.opts();
|
|
15
|
-
const spinner = (
|
|
11
|
+
const spinner = ora({ isSilent: process.env['NODE_ENV'] === 'test' }).start();
|
|
16
12
|
spinner.start('Loading datasource');
|
|
17
13
|
let dataSource;
|
|
18
14
|
try {
|
|
19
|
-
const dataSourcePath =
|
|
20
|
-
dataSource = await
|
|
15
|
+
const dataSourcePath = resolve(process.cwd(), opts.dataSource);
|
|
16
|
+
dataSource = await CommandUtils.loadDataSource(dataSourcePath);
|
|
21
17
|
spinner.succeed('Datasource loaded');
|
|
22
18
|
}
|
|
23
19
|
catch (error) {
|
|
24
20
|
spinner.fail('Could not load the data source!');
|
|
25
|
-
throw new
|
|
21
|
+
throw new DataSourceImportationError('Could not load the data source!', { cause: error });
|
|
26
22
|
}
|
|
27
23
|
spinner.start('Importing seeders');
|
|
28
24
|
let seeders;
|
|
29
25
|
try {
|
|
30
|
-
const seederFiles = paths.flatMap(
|
|
31
|
-
seeders = await
|
|
26
|
+
const seederFiles = paths.flatMap(calculateFilePath);
|
|
27
|
+
seeders = await CommandUtils.loadSeeders(seederFiles);
|
|
32
28
|
spinner.succeed('Seeder imported');
|
|
33
29
|
}
|
|
34
30
|
catch (error) {
|
|
35
31
|
spinner.fail('Could not load seeders!');
|
|
36
|
-
throw new
|
|
32
|
+
throw new SeederImportationError('Could not load default seeders!', { cause: error });
|
|
37
33
|
}
|
|
38
34
|
spinner.info(`Executing seeders...`);
|
|
39
35
|
try {
|
|
40
|
-
await
|
|
36
|
+
await useDataSource(dataSource, true);
|
|
41
37
|
for (const seeder of seeders) {
|
|
42
38
|
spinner.start(`Executing ${seeder.name}`);
|
|
43
|
-
await
|
|
39
|
+
await useSeeders(seeder);
|
|
44
40
|
spinner.succeed(`Seeder ${seeder.name} executed`);
|
|
45
41
|
}
|
|
46
42
|
}
|
|
47
43
|
catch (error) {
|
|
48
44
|
spinner.fail('Could not execute seeder!');
|
|
49
45
|
await dataSource.destroy();
|
|
50
|
-
throw new
|
|
46
|
+
throw new SeederExecutionError('Could not execute seeder!', { cause: error });
|
|
51
47
|
}
|
|
52
48
|
spinner.succeed('Finished seeding');
|
|
53
49
|
await dataSource.destroy();
|
|
54
50
|
}
|
|
55
|
-
const seedCommand = new
|
|
51
|
+
const seedCommand = new Command('seed')
|
|
56
52
|
.description('Run the seeders specified by the path. Glob pattern is allowed.')
|
|
57
53
|
.requiredOption('-d, --dataSource <dataSourcePath>', 'Path to the file where your DataSource instance is defined.', './datasource.ts')
|
|
58
54
|
.argument('<path...>', 'Paths to the seeders. Glob pattern is allowed.')
|
|
59
55
|
.action(run);
|
|
60
|
-
async function bootstrap(argv) {
|
|
56
|
+
export async function bootstrap(argv) {
|
|
61
57
|
await seedCommand.parseAsync(argv);
|
|
62
58
|
}
|
|
63
|
-
exports.bootstrap = bootstrap;
|
|
64
59
|
//# sourceMappingURL=seed.command.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed.command.js","sourceRoot":"","sources":["../../src/commands/seed.command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"seed.command.js","sourceRoot":"","sources":["../../src/commands/seed.command.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DataSource } from 'typeorm';
|
|
2
2
|
export declare class DataSourceManager {
|
|
3
3
|
private static _instance;
|
|
4
|
-
private _dataSource
|
|
4
|
+
private _dataSource;
|
|
5
5
|
static getInstance(): DataSourceManager;
|
|
6
6
|
get dataSource(): DataSource;
|
|
7
7
|
set dataSource(dataSource: DataSource | undefined);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
class DataSourceManager {
|
|
1
|
+
import { DataSourceNotProvidedError } from '../errors';
|
|
2
|
+
export class DataSourceManager {
|
|
3
|
+
static _instance;
|
|
4
|
+
_dataSource;
|
|
6
5
|
static getInstance() {
|
|
7
6
|
if (!DataSourceManager._instance) {
|
|
8
7
|
DataSourceManager._instance = new DataSourceManager();
|
|
@@ -11,7 +10,7 @@ class DataSourceManager {
|
|
|
11
10
|
}
|
|
12
11
|
get dataSource() {
|
|
13
12
|
if (!this._dataSource) {
|
|
14
|
-
throw new
|
|
13
|
+
throw new DataSourceNotProvidedError();
|
|
15
14
|
}
|
|
16
15
|
return this._dataSource;
|
|
17
16
|
}
|
|
@@ -19,5 +18,4 @@ class DataSourceManager {
|
|
|
19
18
|
this._dataSource = dataSource;
|
|
20
19
|
}
|
|
21
20
|
}
|
|
22
|
-
exports.DataSourceManager = DataSourceManager;
|
|
23
21
|
//# sourceMappingURL=DataSourceManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSourceManager.js","sourceRoot":"","sources":["../../src/datasource/DataSourceManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataSourceManager.js","sourceRoot":"","sources":["../../src/datasource/DataSourceManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AAEtD,MAAM,OAAO,iBAAiB;IACpB,MAAM,CAAC,SAAS,CAAmB;IACnC,WAAW,CAAwB;IAE3C,MAAM,CAAC,WAAW;QAChB,IAAI,CAAC,iBAAiB,CAAC,SAAS,EAAE,CAAC;YACjC,iBAAiB,CAAC,SAAS,GAAG,IAAI,iBAAiB,EAAE,CAAA;QACvD,CAAC;QAED,OAAO,iBAAiB,CAAC,SAAS,CAAA;IACpC,CAAC;IAED,IAAI,UAAU;QACZ,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;YACtB,MAAM,IAAI,0BAA0B,EAAE,CAAA;QACxC,CAAC;QAED,OAAO,IAAI,CAAC,WAAW,CAAA;IACzB,CAAC;IAED,IAAI,UAAU,CAAC,UAAkC;QAC/C,IAAI,CAAC,WAAW,GAAG,UAAU,CAAA;IAC/B,CAAC;CACF"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const DataSourceManager_1 = require("./DataSourceManager");
|
|
5
|
-
function configureDataSource(dataSource) {
|
|
6
|
-
DataSourceManager_1.DataSourceManager.getInstance().dataSource = dataSource;
|
|
1
|
+
import { DataSourceManager } from './DataSourceManager';
|
|
2
|
+
export function configureDataSource(dataSource) {
|
|
3
|
+
DataSourceManager.getInstance().dataSource = dataSource;
|
|
7
4
|
}
|
|
8
|
-
exports.configureDataSource = configureDataSource;
|
|
9
5
|
//# sourceMappingURL=configureDataSource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configureDataSource.js","sourceRoot":"","sources":["../../src/datasource/configureDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configureDataSource.js","sourceRoot":"","sources":["../../src/datasource/configureDataSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,UAAU,mBAAmB,CAAC,UAAsB;IACxD,iBAAiB,CAAC,WAAW,EAAE,CAAC,UAAU,GAAG,UAAU,CAAA;AACzD,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const DataSourceManager_1 = require("./DataSourceManager");
|
|
5
|
-
function fetchDataSource() {
|
|
6
|
-
return DataSourceManager_1.DataSourceManager.getInstance().dataSource;
|
|
1
|
+
import { DataSourceManager } from './DataSourceManager';
|
|
2
|
+
export function fetchDataSource() {
|
|
3
|
+
return DataSourceManager.getInstance().dataSource;
|
|
7
4
|
}
|
|
8
|
-
exports.fetchDataSource = fetchDataSource;
|
|
9
5
|
//# sourceMappingURL=fetchDataSource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fetchDataSource.js","sourceRoot":"","sources":["../../src/datasource/fetchDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fetchDataSource.js","sourceRoot":"","sources":["../../src/datasource/fetchDataSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,MAAM,UAAU,eAAe;IAC7B,OAAO,iBAAiB,CAAC,WAAW,EAAE,CAAC,UAAU,CAAA;AACnD,CAAC"}
|
package/dist/datasource/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./configureDataSource"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./fetchDataSource"), exports);
|
|
1
|
+
export * from './configureDataSource';
|
|
2
|
+
export * from './fetchDataSource';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasource/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/datasource/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataSourceImportationError = void 0;
|
|
4
|
-
class DataSourceImportationError extends Error {
|
|
1
|
+
export class DataSourceImportationError extends Error {
|
|
5
2
|
}
|
|
6
|
-
exports.DataSourceImportationError = DataSourceImportationError;
|
|
7
3
|
//# sourceMappingURL=DataSourceImportationError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSourceImportationError.js","sourceRoot":"","sources":["../../src/errors/DataSourceImportationError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataSourceImportationError.js","sourceRoot":"","sources":["../../src/errors/DataSourceImportationError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,0BAA2B,SAAQ,KAAK;CAAG"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DataSourceNotProvidedError = void 0;
|
|
4
|
-
class DataSourceNotProvidedError extends Error {
|
|
1
|
+
export class DataSourceNotProvidedError extends Error {
|
|
5
2
|
constructor() {
|
|
6
3
|
super(`Data source is not provided.`);
|
|
7
4
|
}
|
|
8
5
|
}
|
|
9
|
-
exports.DataSourceNotProvidedError = DataSourceNotProvidedError;
|
|
10
6
|
//# sourceMappingURL=DataSourceNotProvidedError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataSourceNotProvidedError.js","sourceRoot":"","sources":["../../src/errors/DataSourceNotProvidedError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DataSourceNotProvidedError.js","sourceRoot":"","sources":["../../src/errors/DataSourceNotProvidedError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,0BAA2B,SAAQ,KAAK;IACnD;QACE,KAAK,CAAC,8BAA8B,CAAC,CAAA;IACvC,CAAC;CACF"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeederExecutionError = void 0;
|
|
4
|
-
class SeederExecutionError extends Error {
|
|
1
|
+
export class SeederExecutionError extends Error {
|
|
5
2
|
}
|
|
6
|
-
exports.SeederExecutionError = SeederExecutionError;
|
|
7
3
|
//# sourceMappingURL=SeederExecutionError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeederExecutionError.js","sourceRoot":"","sources":["../../src/errors/SeederExecutionError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SeederExecutionError.js","sourceRoot":"","sources":["../../src/errors/SeederExecutionError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oBAAqB,SAAQ,KAAK;CAAG"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SeederImportationError = void 0;
|
|
4
|
-
class SeederImportationError extends Error {
|
|
1
|
+
export class SeederImportationError extends Error {
|
|
5
2
|
}
|
|
6
|
-
exports.SeederImportationError = SeederImportationError;
|
|
7
3
|
//# sourceMappingURL=SeederImportationError.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeederImportationError.js","sourceRoot":"","sources":["../../src/errors/SeederImportationError.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SeederImportationError.js","sourceRoot":"","sources":["../../src/errors/SeederImportationError.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,sBAAuB,SAAQ,KAAK;CAAG"}
|
package/dist/errors/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tslib_1.__exportStar(require("./DataSourceNotProvidedError"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./SeederImportationError"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./SeederExecutionError"), exports);
|
|
1
|
+
export * from './DataSourceImportationError';
|
|
2
|
+
export * from './DataSourceNotProvidedError';
|
|
3
|
+
export * from './SeederImportationError';
|
|
4
|
+
export * from './SeederExecutionError';
|
|
8
5
|
//# sourceMappingURL=index.js.map
|
package/dist/errors/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,8BAA8B,CAAA;AAC5C,cAAc,0BAA0B,CAAA;AACxC,cAAc,wBAAwB,CAAA"}
|
package/dist/helpers/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./useDataSource"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./useSeeders"), exports);
|
|
1
|
+
export * from './useDataSource';
|
|
2
|
+
export * from './useSeeders';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,cAAc,CAAA"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.useDataSource = void 0;
|
|
4
|
-
const datasource_1 = require("../datasource");
|
|
5
|
-
async function useDataSource(dataSource, overrideOptionsOrForceInitialization, forceInitialization) {
|
|
1
|
+
import { configureDataSource } from '../datasource';
|
|
2
|
+
export async function useDataSource(dataSource, overrideOptionsOrForceInitialization, forceInitialization) {
|
|
6
3
|
const overrideOptions = typeof overrideOptionsOrForceInitialization === 'object' ? overrideOptionsOrForceInitialization : undefined;
|
|
7
4
|
const shouldInitilialize = typeof overrideOptionsOrForceInitialization === 'boolean'
|
|
8
5
|
? overrideOptionsOrForceInitialization
|
|
@@ -13,7 +10,6 @@ async function useDataSource(dataSource, overrideOptionsOrForceInitialization, f
|
|
|
13
10
|
if (shouldInitilialize && !dataSource.isInitialized) {
|
|
14
11
|
await dataSource.initialize();
|
|
15
12
|
}
|
|
16
|
-
|
|
13
|
+
configureDataSource(dataSource);
|
|
17
14
|
}
|
|
18
|
-
exports.useDataSource = useDataSource;
|
|
19
15
|
//# sourceMappingURL=useDataSource.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDataSource.js","sourceRoot":"","sources":["../../src/helpers/useDataSource.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDataSource.js","sourceRoot":"","sources":["../../src/helpers/useDataSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAWnD,MAAM,CAAC,KAAK,UAAU,aAAa,CACjC,UAAsB,EACtB,oCAA2E,EAC3E,mBAA6B;IAE7B,MAAM,eAAe,GACnB,OAAO,oCAAoC,KAAK,QAAQ,CAAC,CAAC,CAAC,oCAAoC,CAAC,CAAC,CAAC,SAAS,CAAA;IAC7G,MAAM,kBAAkB,GACtB,OAAO,oCAAoC,KAAK,SAAS;QACvD,CAAC,CAAC,oCAAoC;QACtC,CAAC,CAAC,mBAAmB,CAAA;IAEzB,IAAI,eAAe,EAAE,CAAC;QACpB,UAAU,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;IACxC,CAAC;IAED,IAAI,kBAAkB,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;QACpD,MAAM,UAAU,CAAC,UAAU,EAAE,CAAA;IAC/B,CAAC;IAED,mBAAmB,CAAC,UAAU,CAAC,CAAA;AACjC,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const datasource_1 = require("../datasource");
|
|
5
|
-
async function useSeeders(entrySeeders) {
|
|
6
|
-
const dataSource = (0, datasource_1.fetchDataSource)();
|
|
1
|
+
import { fetchDataSource } from '../datasource';
|
|
2
|
+
export async function useSeeders(entrySeeders) {
|
|
3
|
+
const dataSource = fetchDataSource();
|
|
7
4
|
const seeders = Array.isArray(entrySeeders) ? entrySeeders : [entrySeeders];
|
|
8
5
|
for (const seeder of seeders) {
|
|
9
6
|
await new seeder().run(dataSource);
|
|
10
7
|
}
|
|
11
8
|
}
|
|
12
|
-
exports.useSeeders = useSeeders;
|
|
13
9
|
//# sourceMappingURL=useSeeders.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSeeders.js","sourceRoot":"","sources":["../../src/helpers/useSeeders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useSeeders.js","sourceRoot":"","sources":["../../src/helpers/useSeeders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAI/C,MAAM,CAAC,KAAK,UAAU,UAAU,CAAC,YAA6D;IAC5F,MAAM,UAAU,GAAG,eAAe,EAAE,CAAA;IAEpC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;IAC3E,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,MAAM,IAAI,MAAM,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;IACpC,CAAC;AACH,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tslib_1.__exportStar(require("./helpers"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./seeder"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./types"), exports);
|
|
1
|
+
export * from './errors';
|
|
2
|
+
export * from './helpers';
|
|
3
|
+
export * from './seeder';
|
|
4
|
+
export * from './types';
|
|
8
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA"}
|
package/dist/seeder.js
CHANGED
package/dist/seeder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seeder.js","sourceRoot":"","sources":["../src/seeder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"seeder.js","sourceRoot":"","sources":["../src/seeder.ts"],"names":[],"mappings":"AAEA,MAAM,OAAgB,MAAM;CAE3B"}
|
package/dist/types.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { DataSource } from 'typeorm';
|
|
2
2
|
import { Seeder } from '../seeder';
|
|
3
|
-
import { Constructable } from '../types';
|
|
3
|
+
import type { Constructable } from '../types';
|
|
4
4
|
export declare class CommandUtils {
|
|
5
5
|
static loadDataSource(dataSourceFilePath: string): Promise<DataSource>;
|
|
6
6
|
static loadSeeders(seederPaths: string[]): Promise<Constructable<Seeder>[]>;
|
|
@@ -1,37 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.CommandUtils = void 0;
|
|
27
|
-
const CommandUtils_1 = require("typeorm/commands/CommandUtils");
|
|
28
|
-
const seeder_1 = require("../seeder");
|
|
29
|
-
class CommandUtils {
|
|
1
|
+
import { CommandUtils as TypeormCommandUtils } from 'typeorm/commands/CommandUtils';
|
|
2
|
+
import { Seeder } from '../seeder';
|
|
3
|
+
export class CommandUtils {
|
|
30
4
|
static async loadDataSource(dataSourceFilePath) {
|
|
31
|
-
return
|
|
5
|
+
return TypeormCommandUtils.loadDataSource(dataSourceFilePath);
|
|
32
6
|
}
|
|
33
7
|
static async loadSeeders(seederPaths) {
|
|
34
|
-
const seederFileExports = await Promise.all(seederPaths.map((seederFile) =>
|
|
8
|
+
const seederFileExports = await Promise.all(seederPaths.map((seederFile) => import(seederFile))).then((seederExports) => {
|
|
35
9
|
return seederExports.map((seederExport) => seederExport.default).filter((seederExport) => Boolean(seederExport));
|
|
36
10
|
});
|
|
37
11
|
if (seederFileExports.length === 0) {
|
|
@@ -41,12 +15,11 @@ class CommandUtils {
|
|
|
41
15
|
for (const fileExport in seederFileExports) {
|
|
42
16
|
const seederExport = seederFileExports[fileExport];
|
|
43
17
|
const instance = new seederExport();
|
|
44
|
-
if (instance instanceof
|
|
18
|
+
if (instance instanceof Seeder) {
|
|
45
19
|
seeders.push(seederExport);
|
|
46
20
|
}
|
|
47
21
|
}
|
|
48
22
|
return seeders;
|
|
49
23
|
}
|
|
50
24
|
}
|
|
51
|
-
exports.CommandUtils = CommandUtils;
|
|
52
25
|
//# sourceMappingURL=commandUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandUtils.js","sourceRoot":"","sources":["../../src/utils/commandUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commandUtils.js","sourceRoot":"","sources":["../../src/utils/commandUtils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AACnF,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAGlC,MAAM,OAAO,YAAY;IACvB,MAAM,CAAC,KAAK,CAAC,cAAc,CAAC,kBAA0B;QACpD,OAAO,mBAAmB,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAA;IAC/D,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,WAAqB;QAC5C,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CACnG,CAAC,aAAa,EAAE,EAAE;YAChB,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAA;QAClH,CAAC,CACF,CAAA;QAED,IAAI,iBAAiB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YACnC,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAA;QAC7C,CAAC;QAED,MAAM,OAAO,GAA4B,EAAE,CAAA;QAC3C,KAAK,MAAM,UAAU,IAAI,iBAAiB,EAAE,CAAC;YAC3C,MAAM,YAAY,GAAG,iBAAiB,CAAC,UAAU,CAAC,CAAA;YAClD,MAAM,QAAQ,GAAG,IAAI,YAAY,EAAE,CAAA;YACnC,IAAI,QAAQ,YAAY,MAAM,EAAE,CAAC;gBAC/B,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;YAC5B,CAAC;QACH,CAAC;QAED,OAAO,OAAO,CAAA;IAChB,CAAC;CACF"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const glob_1 = require("glob");
|
|
5
|
-
const calculateFilePath = (filePattern) => {
|
|
6
|
-
return (0, glob_1.sync)(filePattern, { ignore: '**/node_modules/**', absolute: true });
|
|
1
|
+
import { sync } from 'glob';
|
|
2
|
+
export const calculateFilePath = (filePattern) => {
|
|
3
|
+
return sync(filePattern, { ignore: '**/node_modules/**', absolute: true });
|
|
7
4
|
};
|
|
8
|
-
exports.calculateFilePath = calculateFilePath;
|
|
9
5
|
//# sourceMappingURL=fileHandling.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileHandling.js","sourceRoot":"","sources":["../../src/utils/fileHandling.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"fileHandling.js","sourceRoot":"","sources":["../../src/utils/fileHandling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAE3B,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,WAAmB,EAAY,EAAE;IACjE,OAAO,IAAI,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,oBAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAA;AAC5E,CAAC,CAAA"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./commandUtils"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./fileHandling"), exports);
|
|
1
|
+
export * from './commandUtils';
|
|
2
|
+
export * from './fileHandling';
|
|
6
3
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,gBAAgB,CAAA"}
|