@dnlycticket/common 1.0.0 → 1.0.2

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,7 @@
1
+ interface Color {
2
+ read: number;
3
+ blue: number;
4
+ green: number;
5
+ }
6
+ declare const color: Color;
7
+ export default color;
package/build/index.js ADDED
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ // 上传包命令
3
+ // npm publish --access public
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ var color = {
6
+ read: 10,
7
+ blue: 10,
8
+ green: 10,
9
+ };
10
+ console.log(color);
11
+ exports.default = color;
package/package.json CHANGED
@@ -1,15 +1,25 @@
1
1
  {
2
2
  "name": "@dnlycticket/common",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },
7
- "main": "index.js",
7
+ "main": "./build/index.js",
8
+ "types": "./build/index.d.ts",
9
+ "files": [
10
+ "build/**/*"
11
+ ],
8
12
  "scripts": {
9
- "test": "echo \"Error: no test specified\" && exit 1"
13
+ "clean": "rimraf build",
14
+ "build": "npm run clean && tsc"
10
15
  },
11
16
  "keywords": [],
12
17
  "author": "",
13
18
  "license": "ISC",
14
- "description": ""
19
+ "description": "",
20
+ "devDependencies": {
21
+ "del-cli": "^7.0.0",
22
+ "rimraf": "^5.0.10",
23
+ "typescript": "^5.9.3"
24
+ }
15
25
  }