|
21 | 21 | "license": "MIT", |
22 | 22 | "author": "Isaac J. Lee", |
23 | 23 | "exports": { |
24 | | - ".": "./dist/index.js", |
| 24 | + ".": { |
| 25 | + "types": "./declarations/index.d.ts", |
| 26 | + "default": "./dist/index.js" |
| 27 | + }, |
25 | 28 | "./*": { |
26 | | - "types": "./dist/*.d.ts", |
| 29 | + "types": "./declarations/*.d.ts", |
27 | 30 | "default": "./dist/*.js" |
28 | 31 | }, |
29 | 32 | "./addon-main.js": "./addon-main.cjs" |
30 | 33 | }, |
31 | 34 | "typesVersions": { |
32 | 35 | "*": { |
33 | 36 | "*": [ |
34 | | - "dist/*" |
| 37 | + "declarations/*" |
35 | 38 | ] |
36 | 39 | } |
37 | 40 | }, |
|
41 | 44 | }, |
42 | 45 | "files": [ |
43 | 46 | "addon-main.cjs", |
| 47 | + "declarations", |
44 | 48 | "dist" |
45 | 49 | ], |
46 | 50 | "scripts": { |
47 | | - "build": "rollup --config", |
| 51 | + "build": "concurrently \"npm:build:*\" --names \"build:\"", |
| 52 | + "build:js": "rollup --config", |
| 53 | + "build:types": "glint --declaration", |
48 | 54 | "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"", |
49 | 55 | "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"", |
50 | 56 | "lint:hbs": "ember-template-lint .", |
|
53 | 59 | "lint:js:fix": "eslint . --fix", |
54 | 60 | "lint:types": "glint", |
55 | 61 | "prepack": "rollup --config", |
56 | | - "start": "rollup --config --watch", |
| 62 | + "start": "concurrently \"npm:start:*\" --names \"start:\"", |
| 63 | + "start:js": "rollup --config --watch --no-watch.clearScreen", |
| 64 | + "start:types": "glint --declaration --watch", |
57 | 65 | "test": "echo 'A v2 addon does not have tests, run tests in test-app'" |
58 | 66 | }, |
59 | 67 | "dependencies": { |
|
75 | 83 | "@glint/core": "^1.0.2", |
76 | 84 | "@glint/environment-ember-loose": "^1.0.2", |
77 | 85 | "@glint/template": "^1.0.2", |
| 86 | + "@rollup/plugin-babel": "^6.0.3", |
| 87 | + "@rollup/plugin-node-resolve": "^15.1.0", |
78 | 88 | "@tsconfig/ember": "^2.0.0", |
79 | 89 | "@types/ember__component": "^4.0.14", |
80 | 90 | "@types/ember__destroyable": "^4.0.2", |
|
97 | 107 | "prettier": "^2.8.8", |
98 | 108 | "rollup": "^3.25.1", |
99 | 109 | "rollup-plugin-copy": "^3.4.0", |
100 | | - "rollup-plugin-ts": "^3.2.0", |
101 | 110 | "typescript": "^5.1.3" |
102 | 111 | }, |
103 | 112 | "engines": { |
|
0 commit comments