@tstdl/base 0.83.0-beta4 → 0.83.0

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.cjs CHANGED
@@ -79,13 +79,6 @@ module.exports = {
79
79
  'import/no-unassigned-import': ['error'],
80
80
 
81
81
  /** misc */
82
-
83
- 'indent': ['error', 2, {
84
- SwitchCase: 1
85
- }],
86
- 'linebreak-style': ['error', 'unix'],
87
- 'quotes': ['error', 'single'],
88
- 'semi': ['error', 'always'],
89
82
  'array-bracket-newline': ['error', 'consistent'],
90
83
  'array-element-newline': ['error', 'consistent'],
91
84
  'camelcase': 'off',
@@ -99,8 +92,10 @@ module.exports = {
99
92
  'function-paren-newline': ['warn', 'consistent'],
100
93
  'generator-star-spacing': ['off', { before: false, after: true }],
101
94
  'id-length': 'off',
95
+ 'indent': ['error', 2, { SwitchCase: 1 }],
102
96
  'init-declarations': 'off',
103
97
  'line-comment-position': 'off',
98
+ 'linebreak-style': ['error', 'unix'],
104
99
  'lines-around-comment': 'off',
105
100
  'lines-between-class-members': 'off',
106
101
  'max-classes-per-file': 'off',
@@ -136,6 +131,8 @@ module.exports = {
136
131
  'prefer-destructuring': 'off',
137
132
  'prefer-named-capture-group': 'off',
138
133
  'quote-props': ['error', 'as-needed'],
134
+ 'quotes': ['error', 'single'],
135
+ 'semi': ['error', 'always'],
139
136
  'sort-imports': ['off', { ignoreCase: true }],
140
137
  'sort-keys': 'off',
141
138
 
@@ -1,6 +1,6 @@
1
1
  import type { Entity, MaybeNewEntity } from './entity.js';
2
2
  import type { Query, QueryOptions } from './query.js';
3
- declare const repositoryType: unique symbol;
3
+ export declare const repositoryType: unique symbol;
4
4
  export type UpdateOptions = {
5
5
  upsert?: boolean;
6
6
  };
@@ -48,4 +48,3 @@ export declare abstract class EntityRepository<T extends Entity = Entity> {
48
48
  abstract deleteByFilter<U extends T = T>(query: Query<U>): Promise<boolean>;
49
49
  abstract deleteManyByFilter<U extends T = T>(query: Query<U>): Promise<number>;
50
50
  }
51
- export {};
@@ -18,8 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var entity_repository_exports = {};
20
20
  __export(entity_repository_exports, {
21
- EntityRepository: () => EntityRepository
21
+ EntityRepository: () => EntityRepository,
22
+ repositoryType: () => repositoryType
22
23
  });
23
24
  module.exports = __toCommonJS(entity_repository_exports);
25
+ const repositoryType = Symbol("repositoryType");
24
26
  class EntityRepository {
25
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.83.0-beta4",
3
+ "version": "0.83.0",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,7 +8,7 @@
8
8
  "type": "commonjs",
9
9
  "scripts": {
10
10
  "build": "tsc && tsc-alias",
11
- "build:watch": "tsc --watch & tsc-alias --watch && wait",
11
+ "build:watch": "tsc && (concurrently --raw 'tsc --watch' 'tsc-alias --watch')",
12
12
  "build:production": "rm -rf dist && npm run build && npm run build:production:cjs && npm run build:production:copy-files",
13
13
  "build:production:cjs": "esbuild `find dist \\( -name '*.js' -o -name '*.jsx' \\)` --outdir=dist --allow-overwrite --format=cjs",
14
14
  "build:production:copy-files": "cp package.json .eslintrc.cjs tsconfig.server.json dist/ && cp tsconfig.base.json dist/tsconfig.json && sed -i 's/\"type\": \"module\",/\"type\": \"commonjs\",/g' dist/package.json",
@@ -33,6 +33,7 @@
33
33
  "@types/nodemailer": "6.4",
34
34
  "@typescript-eslint/eslint-plugin": "5.55",
35
35
  "@typescript-eslint/parser": "5.55",
36
+ "concurrently": "7.6",
36
37
  "eslint": "8.36",
37
38
  "eslint-import-resolver-typescript": "3.5",
38
39
  "eslint-plugin-import": "2.27",
package/tsconfig.json CHANGED
@@ -47,8 +47,7 @@
47
47
  "jsxImportSource": "preact",
48
48
 
49
49
  /* misc */
50
- "skipLibCheck": true,
51
- "importHelpers": false
50
+ "skipLibCheck": true
52
51
  },
53
- "exclude": ["./dist"]
52
+ "exclude": ["dist/"]
54
53
  }