@cwertlinks/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,16 @@
1
+ interface Color {
2
+ red: number;
3
+ green: number;
4
+ blue: number;
5
+ }
6
+ interface Point {
7
+ x: number;
8
+ y: number;
9
+ }
10
+ interface Shape {
11
+ color: Color;
12
+ points: Point[];
13
+ }
14
+ declare const shape: Shape;
15
+ export { shape };
16
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,KAAK;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX;AAED,UAAU,KAAK;IACb,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,KAAK,EAAE,CAAC;CACjB;AAED,QAAA,MAAM,KAAK,EAAE,KAGZ,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
package/build/index.js ADDED
@@ -0,0 +1,7 @@
1
+ const shape = {
2
+ color: { red: 200, green: 100, blue: 0 },
3
+ points: [{ x: 0, y: 0 }, { x: 1, y: 1 }, { x: 2, y: 2 }],
4
+ };
5
+ console.log(shape);
6
+ export { shape };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAgBA,MAAM,KAAK,GAAU;IACnB,KAAK,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE;IACxC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;CACzD,CAAC;AAEF,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACnB,OAAO,EAAE,KAAK,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,23 @@
1
1
  {
2
2
  "name": "@cwertlinks/common",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "common utilities for the ticketing project",
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-cli build/**/*",
12
+ "build": "npm run clean && tsc",
13
+ "pub": "git add . && git commit -m \"$npm_config_message\" && npm version patch && npm run build && npm publish"
8
14
  },
9
15
  "keywords": [],
10
16
  "author": "",
11
17
  "license": "ISC",
12
- "type": "commonjs"
18
+ "type": "module",
19
+ "devDependencies": {
20
+ "del-cli": "^7.0.0",
21
+ "typescript": "^7.0.2"
22
+ }
13
23
  }