laynn-my-first-pkg 0.0.0-stage → 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.
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ // index.js
2
+ const moduleA = require('./moduleA');
3
+ const moduleB = require('./moduleB');
4
+
5
+ module.exports = {
6
+ moduleA,
7
+ moduleB
8
+ };
package/moduleA.js ADDED
File without changes
package/moduleB.js ADDED
@@ -0,0 +1,13 @@
1
+ // moduleB.js
2
+ function sayBye(name) {
3
+ console.log(`[moduleB] Bye, ${name}! 这是模块B的方法`);
4
+ }
5
+
6
+ function logError(msg) {
7
+ console.log(`[moduleB] ERROR: ${msg}`);
8
+ }
9
+
10
+ module.exports = {
11
+ sayBye,
12
+ logError
13
+ };
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
- {
2
- "name": "laynn-my-first-pkg",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
1
+ {
2
+ "name": "laynn-my-first-pkg",
3
+ "version": "1.0.0",
4
+ "description": "第六次实验:一个包含两个模块的npm包",
5
+ "main": "index.js",
6
+ "keywords": ["demo", "experiment"],
7
+ "author": "laynn",
8
+ "license": "MIT"
6
9
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.