@runnerpro/backend 0.0.0-development → 0.0.1

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.
@@ -6,6 +6,3 @@ function helloWorld() {
6
6
  return message;
7
7
  }
8
8
  exports.helloWorld = helloWorld;
9
- exports.default = {
10
- helloWorld,
11
- };
package/lib/cjs/index.js CHANGED
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.goodBye = void 0;
3
+ exports.helloWorld = exports.goodBye = void 0;
4
+ const HelloWorld_1 = require("./HelloWorld");
5
+ Object.defineProperty(exports, "helloWorld", { enumerable: true, get: function () { return HelloWorld_1.helloWorld; } });
4
6
  function goodBye() {
5
7
  const message = 'Goodbye from my example modern npm package!';
6
8
  return message;
7
9
  }
8
10
  exports.goodBye = goodBye;
9
- exports.default = {
10
- goodBye,
11
- };
12
- // export { default as NotificationToClient } from './NotificationToClient';
13
- // export * from './NotificationToClient';
@@ -1,6 +1,2 @@
1
1
  export declare function helloWorld(): string;
2
- declare const _default: {
3
- helloWorld: typeof helloWorld;
4
- };
5
- export default _default;
6
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/HelloWorld/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,WAGzB;;;;AAED,wBAEE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/HelloWorld/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,WAGzB"}
@@ -1,6 +1,4 @@
1
- export declare function goodBye(): string;
2
- declare const _default: {
3
- goodBye: typeof goodBye;
4
- };
5
- export default _default;
1
+ import { helloWorld } from './HelloWorld';
2
+ declare function goodBye(): string;
3
+ export { goodBye, helloWorld };
6
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,WAGtB;;;;AAED,wBAEE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,iBAAS,OAAO,WAGf;AAED,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,18 +1,9 @@
1
1
  {
2
2
  "name": "@runnerpro/backend",
3
- "version": "0.0.0-development",
3
+ "version": "0.0.1",
4
4
  "description": "A collection of common backend functions",
5
5
  "exports": {
6
- ".": {
7
- "import": {
8
- "types": "./lib/esm/types/index.d.ts",
9
- "default": "./lib/esm/index.mjs"
10
- },
11
- "require": {
12
- "types": "./lib/cjs/types/index.d.ts",
13
- "default": "./lib/cjs/index.js"
14
- }
15
- }
6
+ ".": "./lib/cjs/index.js"
16
7
  },
17
8
  "types": "./lib/cjs/types/index.d.ts",
18
9
  "main": "./lib/cjs/index.js",
@@ -21,10 +12,9 @@
21
12
  ],
22
13
  "scripts": {
23
14
  "clean": "del-cli ./lib",
24
- "build": "npm run clean && npm run build:esm && npm run build:cjs",
25
- "build:esm": "tsc -p ./configs/tsconfig.esm.json && move-file lib/esm/index.js lib/esm/index.mjs",
26
- "build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
15
+ "build": "npm run clean && tsc -p ./configs/tsconfig.cjs.json",
27
16
  "test": "mocha",
17
+ "publish": "npm run build && npm publish",
28
18
  "semantic-release": "semantic-release"
29
19
  },
30
20
  "release": {
@@ -37,13 +27,12 @@
37
27
  },
38
28
  "repository": {
39
29
  "type": "git",
40
- "url": "https://gitlab.com/runner-pro/commons.git"
30
+ "url": "https://gitlab.com/runner-pro/runnerpro-backend.git"
41
31
  },
42
32
  "keywords": [
43
33
  "npm",
44
34
  "javascript",
45
35
  "typescript",
46
- "esm",
47
36
  "cjs",
48
37
  "nodejs",
49
38
  "commonjs",
@@ -54,9 +43,6 @@
54
43
  ],
55
44
  "author": "Runner Pro",
56
45
  "license": "MIT",
57
- "bugs": {
58
- "url": "https://gitlab.com/runner-pro/commons/-/issues"
59
- },
60
46
  "devDependencies": {
61
47
  "@types/chai": "^4.3.3",
62
48
  "@types/mocha": "^9.1.1",
@@ -1,67 +0,0 @@
1
- {
2
- "name": "runnerpro-common-backend",
3
- "version": "0.0.5-development",
4
- "description": "A collection of common backend functions",
5
- "exports": {
6
- ".": {
7
- "require": {
8
- "types": "./types/index.d.ts",
9
- "default": "./index.js"
10
- }
11
- }
12
- },
13
- "types": "./types/index.d.ts",
14
- "main": "./index.js",
15
- "files": [
16
- "**/*"
17
- ],
18
- "scripts": {
19
- "clean": "del-cli ./lib",
20
- "build": "npm run clean && npm run build:esm && npm run build:cjs",
21
- "build:esm": "tsc -p ./configs/tsconfig.esm.json && move-file lib/esm/index.js lib/esm/index.mjs",
22
- "build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
23
- "test": "mocha",
24
- "semantic-release": "semantic-release"
25
- },
26
- "release": {
27
- "branches": [
28
- "main"
29
- ]
30
- },
31
- "publishConfig": {
32
- "access": "public"
33
- },
34
- "repository": {
35
- "type": "git",
36
- "url": "https://gitlab.com/runner-pro/commons.git"
37
- },
38
- "keywords": [
39
- "npm",
40
- "javascript",
41
- "typescript",
42
- "esm",
43
- "cjs",
44
- "nodejs",
45
- "commonjs",
46
- "ecmascript",
47
- "beginner",
48
- "example",
49
- "demonstration"
50
- ],
51
- "author": "Runner Pro",
52
- "license": "MIT",
53
- "bugs": {
54
- "url": "https://gitlab.com/runner-pro/commons/-/issues"
55
- },
56
- "devDependencies": {
57
- "@types/chai": "^4.3.3",
58
- "@types/mocha": "^9.1.1",
59
- "chai": "^4.3.6",
60
- "del-cli": "^5.0.0",
61
- "mocha": "^10.0.0",
62
- "move-file-cli": "^3.0.0",
63
- "semantic-release": "^19.0.3",
64
- "ts-node": "^10.9.1",
65
- "typescript": "^4.7.4"
66
- }
67
- }
@@ -1,7 +0,0 @@
1
- export function helloWorld() {
2
- const message = 'Hello World from my example modern npm package!';
3
- return message;
4
- }
5
- export default {
6
- helloWorld,
7
- };
package/lib/esm/index.mjs DELETED
@@ -1,9 +0,0 @@
1
- export function goodBye() {
2
- const message = 'Goodbye from my example modern npm package!';
3
- return message;
4
- }
5
- export default {
6
- goodBye,
7
- };
8
- // export { default as NotificationToClient } from './NotificationToClient';
9
- // export * from './NotificationToClient';
@@ -1,6 +0,0 @@
1
- export declare function helloWorld(): string;
2
- declare const _default: {
3
- helloWorld: typeof helloWorld;
4
- };
5
- export default _default;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/HelloWorld/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,WAGzB;;;;AAED,wBAEE"}
@@ -1,6 +0,0 @@
1
- export declare function goodBye(): string;
2
- declare const _default: {
3
- goodBye: typeof goodBye;
4
- };
5
- export default _default;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,OAAO,WAGtB;;;;AAED,wBAEE"}