@rkticket/common 1.0.0 → 1.0.3

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