@sa2-movie-ticket/core 0.0.6

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/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # @sa2-movie-ticket/core
2
+
3
+ Core utility library for the movie ticket microservices system.
4
+
5
+ ## Features
6
+
7
+ - Shared business logic
8
+ - Common types and interfaces
9
+ - Utility functions
10
+
11
+ ## Installation
12
+
13
+ To install this package, you must configure your npm/bun to look for the `@sa2-movie-ticket` scope in GitHub Packages.
14
+
15
+ 1. Create an `.npmrc` file in your project root (or user home `~/.npmrc`):
16
+
17
+ ```ini
18
+ @sa2-movie-ticket:registry=https://npm.pkg.github.com
19
+ ```
20
+
21
+ 2. Install the package:
22
+
23
+ ```bash
24
+ npm install @sa2-movie-ticket/core
25
+ # or
26
+ bun add @sa2-movie-ticket/core
27
+ ```
28
+
29
+ If it's a **private** package (or repo), you also need to authenticate:
30
+
31
+ ```ini
32
+ //npm.pkg.github.com/:_authToken=YOUR_GITHUB_TOKEN
33
+ ```
34
+
35
+ ```bash
36
+ npm install @sa2-movie-ticket/core
37
+ # or
38
+ bun add @sa2-movie-ticket/core
39
+ ```
40
+
41
+ ## Usage
42
+
43
+ ```typescript
44
+ import { core } from "@sa2-movie-ticket/core";
45
+
46
+ core(); // executing the core function
47
+ ```
48
+
49
+ ## Publishing
50
+
51
+ This package is configured to publish to GitHub Packages automatically via GitHub Actions when a new release is created.
@@ -0,0 +1,3 @@
1
+ declare const core: () => void;
2
+
3
+ export { core };
@@ -0,0 +1,3 @@
1
+ declare const core: () => void;
2
+
3
+ export { core };
package/dist/index.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ core: () => core
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ var core = () => {
27
+ console.log("Hello via Bun! from core");
28
+ };
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ core
32
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,7 @@
1
+ // src/index.ts
2
+ var core = () => {
3
+ console.log("Hello via Bun! from core");
4
+ };
5
+ export {
6
+ core
7
+ };
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@sa2-movie-ticket/core",
3
+ "version": "0.0.6",
4
+ "module": "dist/index.mjs",
5
+ "type": "commonjs",
6
+ "description": "Core utility for movie ticket microservices",
7
+ "main": "dist/index.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.mjs",
11
+ "require": "./dist/index.js"
12
+ }
13
+ },
14
+ "types": "dist/index.d.ts",
15
+ "files": [
16
+ "dist"
17
+ ],
18
+ "publishConfig": {
19
+ "access": "public",
20
+ "registry": "https://npm.pkg.github.com"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/sa2-movie-ticket/core.git"
25
+ },
26
+ "scripts": {
27
+ "build": "tsup src/index.ts --format cjs,esm --dts",
28
+ "prepublishOnly": "npm run build"
29
+ },
30
+ "author": {
31
+ "name": "Shakil Ahmed",
32
+ "email": "sa2avroo@gmail.com",
33
+ "url": "https://github.com/sa3akash"
34
+ },
35
+ "devDependencies": {
36
+ "@types/bun": "latest",
37
+ "tsup": "^8.5.1"
38
+ },
39
+ "peerDependencies": {
40
+ "typescript": "^5"
41
+ }
42
+ }