@haandrikman/test-package-oidc-test 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.
@@ -0,0 +1,22 @@
1
+ name: Publish Package
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ contents: read
10
+ id-token: write # Required for OIDC
11
+
12
+ jobs:
13
+ publish:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v5
17
+ - uses: actions/setup-node@v6
18
+ with:
19
+ node-version: lts/*
20
+ - run: npm ci
21
+ - run: npm t
22
+ - run: npm publish --verbose
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # SAY Hello Functions
2
+
3
+ A list of not so helpful functions. This is just a test library.
@@ -0,0 +1,9 @@
1
+ type SayHelloProps = {
2
+ firstName: string;
3
+ lastName?: string;
4
+ age?: number;
5
+ };
6
+
7
+ declare function sayHello({ firstName, lastName, age, }: SayHelloProps): void;
8
+
9
+ export { type SayHelloProps, sayHello };
@@ -0,0 +1,9 @@
1
+ type SayHelloProps = {
2
+ firstName: string;
3
+ lastName?: string;
4
+ age?: number;
5
+ };
6
+
7
+ declare function sayHello({ firstName, lastName, age, }: SayHelloProps): void;
8
+
9
+ export { type SayHelloProps, sayHello };
package/dist/index.js ADDED
@@ -0,0 +1,41 @@
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
+ sayHello: () => sayHello
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/functions.ts
28
+ function sayHello({ firstName, lastName, age }) {
29
+ console.log("Hello!");
30
+ console.log("Your first name is ${firstName}");
31
+ if (lastName) {
32
+ console.log("Your last name is $(lastName)");
33
+ }
34
+ if (age) {
35
+ console.log("Your age is ${age}");
36
+ }
37
+ }
38
+ // Annotate the CommonJS export names for ESM import in node:
39
+ 0 && (module.exports = {
40
+ sayHello
41
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,14 @@
1
+ // src/functions.ts
2
+ function sayHello({ firstName, lastName, age }) {
3
+ console.log("Hello!");
4
+ console.log("Your first name is ${firstName}");
5
+ if (lastName) {
6
+ console.log("Your last name is $(lastName)");
7
+ }
8
+ if (age) {
9
+ console.log("Your age is ${age}");
10
+ }
11
+ }
12
+ export {
13
+ sayHello
14
+ };
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@haandrikman/test-package-oidc-test",
3
+ "version": "0.0.1",
4
+ "description": "test package for testing the functionality of oidc token with github actions",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "main": "./dist/index.js",
9
+ "module": "./dist/index.mjs",
10
+ "types": "./dist/index.d.ts",
11
+ "homepage": "https://google.com",
12
+ "repository": {
13
+ "url": "https://github.com/Bram-Haandrikman/test"
14
+ },
15
+ "scripts": {
16
+ "build": "tsup"
17
+ },
18
+ "keywords": [],
19
+ "author": "haandb",
20
+ "license": "ISC",
21
+ "devDependencies": {
22
+ "tsup": "^8.5.1",
23
+ "typescript": "^5.9.3"
24
+ }
25
+ }