@maysun/common 2.0.0 → 2.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
+ red: 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,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const color = {
4
+ red: 10,
5
+ blue: 10,
6
+ green: 10,
7
+ };
8
+ console.log(color);
9
+ console.log("hello");
10
+ exports.default = color;
package/package.json CHANGED
@@ -1,12 +1,22 @@
1
1
  {
2
2
  "name": "@maysun/common",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "",
5
- "main": "index.js",
5
+ "main": "./build/index.js",
6
+ "types": "./build/index.d.ts",
7
+ "files": [
8
+ "build/**/**"
9
+ ],
6
10
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
11
+ "clean": "del ./build/*",
12
+ "build": "npm run clean & tsc",
13
+ "pub": "git add . & git commit -m \"Updates\" & npm version patch & npm run build & npm publish"
8
14
  },
9
15
  "keywords": [],
10
16
  "author": "",
11
- "license": "ISC"
17
+ "license": "ISC",
18
+ "devDependencies": {
19
+ "del-cli": "^6.0.0",
20
+ "typescript": "^5.7.3"
21
+ }
12
22
  }