@sidj-thr/npm-package-test 0.1.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/README.md ADDED
@@ -0,0 +1 @@
1
+ # npm-package-test
package/package.json ADDED
@@ -0,0 +1,27 @@
1
+ {
2
+ "name": "@sidj-thr/npm-package-test",
3
+ "version": "0.1.0",
4
+ "description": "Minimal scaffold for private npm publishing and trusted CI",
5
+ "type": "module",
6
+ "main": "./src/index.js",
7
+ "exports": {
8
+ ".": "./src/index.js"
9
+ },
10
+ "files": [
11
+ "src"
12
+ ],
13
+ "scripts": {
14
+ "test": "node --test"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/sidj-thr/npm-package-test.git"
19
+ },
20
+ "publishConfig": {
21
+ "access": "restricted"
22
+ },
23
+ "engines": {
24
+ "node": ">=18"
25
+ },
26
+ "license": "MIT"
27
+ }
package/src/index.js ADDED
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @param {string} [name="world"]
3
+ * @returns {string}
4
+ */
5
+ export function greet(name = "world") {
6
+ return `Hello, ${name}!`;
7
+ }