@manjit-finn/hai 1.0.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.
@@ -0,0 +1,27 @@
1
+ name: Publish to npm
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ id-token: write # required for OIDC
13
+ contents: read
14
+
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '20'
21
+ registry-url: 'https://registry.npmjs.org'
22
+
23
+ - run: npm install
24
+
25
+ - run: npm publish --access restricted --provenance
26
+ env:
27
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -0,0 +1,2 @@
1
+ export * from './src/index.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './src/index.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function hai(): string;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,GAAG,IAAI,MAAM,CAE5B"}
@@ -0,0 +1,4 @@
1
+ export function hai() {
2
+ return 'hai';
3
+ }
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG;IACjB,OAAO,KAAK,CAAC;AACf,CAAC"}
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './src/index.js';
package/mise.toml ADDED
@@ -0,0 +1,2 @@
1
+ [tools]
2
+ node = "20"
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@manjit-finn/hai",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "description": "hai",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "publishConfig": {
9
+ "registry": "https://registry.npmjs.org/",
10
+ "access": "public"
11
+ },
12
+ "scripts": {
13
+ "build": "npx tsc",
14
+ "prepublishOnly": "npm run build"
15
+ },
16
+ "engines": {
17
+ "node": ">=18.0.0 <25.0.0",
18
+ "npm": ">=10.0.0"
19
+ },
20
+ "devDependencies": {
21
+ "@types/node": "^20.12.2",
22
+ "typescript": "^5.9.2"
23
+ },
24
+ "license": "ISC"
25
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export function hai(): string {
2
+ return 'hai';
3
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "compilerOptions": {
4
+ "lib": ["es2023"],
5
+ "module": "nodenext",
6
+ "target": "es2022",
7
+ "strict": true,
8
+ "skipLibCheck": true,
9
+ "forceConsistentCasingInFileNames": true,
10
+ "moduleResolution": "nodenext",
11
+ "outDir": "dist",
12
+ "declaration": true,
13
+ "sourceMap": true,
14
+ "declarationMap": true
15
+ },
16
+ "include": ["index.ts", "src/**/*"],
17
+ "exclude": ["node_modules", "dist"]
18
+ }