|
6 | 6 | "module": "dist/esm/index.js",
|
7 | 7 | "exports": {
|
8 | 8 | ".": {
|
9 |
| - "browser": "./dist/esm/index.js", |
10 | 9 | "import": "./dist/esm/index.js",
|
11 |
| - "require": "./dist/commonjs/index.js" |
| 10 | + "require": "./dist/commonjs/index.js", |
| 11 | + "default": "./dist/esm/index.js" |
12 | 12 | },
|
13 | 13 | "./*": "./*"
|
14 | 14 | },
|
15 | 15 | "typesVersions": {
|
16 | 16 | "*": {
|
17 | 17 | "*": [
|
18 |
| - "./dist/esm/index.d.ts" |
| 18 | + "./dist/types/index.d.ts" |
19 | 19 | ]
|
20 | 20 | }
|
21 | 21 | },
|
22 |
| - "types": "dist/esm/index.d.ts", |
| 22 | + "types": "dist/types/index.d.ts", |
23 | 23 | "license": "MIT",
|
24 | 24 | "author": "Ghislain B.",
|
25 | 25 | "homepage": "https://github.com/ghiscoding/slickgrid-universal",
|
|
39 | 39 | ],
|
40 | 40 | "scripts": {
|
41 | 41 | "prebuild": "pnpm run clean",
|
42 |
| - "build": "pnpm run bundle:esm", |
| 42 | + "build": "pnpm run bundle:esm && tsc --declaration", |
43 | 43 | "postbuild": "run-s sass:build sass:copy",
|
44 |
| - "build:incremental": "tsc --incremental", |
| 44 | + "build:incremental": "tsc --incremental --declaration", |
45 | 45 | "clean": "rimraf dist tsconfig.tsbuildinfo",
|
46 | 46 | "dev": "node build-watch.mjs",
|
47 | 47 | "prebundle": "pnpm run clean",
|
48 |
| - "bundle": "run-p bundle:commonjs bundle:esm", |
| 48 | + "bundle": "run-p bundle:commonjs bundle:esm bundle:types", |
49 | 49 | "postbundle": "run-s sass:build sass:copy",
|
50 | 50 | "bundle:commonjs": "tsc --project tsconfig.bundle.json --outDir dist/commonjs --module commonjs",
|
51 | 51 | "bundle:esm": "tsc --project tsconfig.bundle.json --outDir dist/esm --module esnext --target es2018",
|
| 52 | + "bundle:types": "tsc --emitDeclarationOnly --declarationMap --outDir dist/types", |
52 | 53 | "sass-build-task:scss-compile:bootstrap": "sass src/styles/slickgrid-theme-bootstrap.scss dist/styles/css/slickgrid-theme-bootstrap.css --style=compressed --quiet-deps --no-source-map",
|
53 | 54 | "sass-build-task:scss-compile:material": "sass src/styles/slickgrid-theme-material.scss dist/styles/css/slickgrid-theme-material.css --style=compressed --quiet-deps --no-source-map",
|
54 | 55 | "sass-build-task:scss-compile:material-bare": "sass src/styles/slickgrid-theme-material.bare.scss dist/styles/css/slickgrid-theme-material.bare.css --style=compressed --quiet-deps --no-source-map",
|
|
0 commit comments