|
2 | 2 | "name": "@rabbitholegg/questdk-plugin-template",
|
3 | 3 | "private": true,
|
4 | 4 | "version": "1.0.0-alpha.13",
|
| 5 | + "description": "", |
5 | 6 | "exports": {
|
6 | 7 | "require": "./dist/cjs/index.js",
|
7 | 8 | "import": "./dist/esm/index.js",
|
8 | 9 | "types": "./dist/types/index.d.ts"
|
9 | 10 | },
|
10 | 11 | "main": "./dist/cjs/index.js",
|
11 | 12 | "module": "./dist/esm/index.js",
|
12 |
| - "description": "", |
| 13 | + "types": "./dist/types/index.d.ts", |
| 14 | + "typings": "./dist/types/index.d.ts", |
13 | 15 | "scripts": {
|
| 16 | + "build": "vite build && tsc --project tsconfig.build.json --emitDeclarationOnly --declaration --declarationMap --declarationDir ./dist/types", |
14 | 17 | "bench": "vitest bench",
|
15 | 18 | "bench:ci": "CI=true vitest bench",
|
16 |
| - "build": "pnpm build:types && pnpm build:esm && pnpm postbuild:esm && pnpm build:cjs && pnpm postbuild:cjs && BABEL_ENV=esmBundled pnpm rollup -c", |
17 |
| - "build:esm": "BABEL_ENV=esmUnbundled babel src --extensions '.ts' --out-dir 'dist/esm' --source-maps", |
18 |
| - "build:cjs": "BABEL_ENV=cjs babel src --extensions '.ts' --out-dir 'dist/cjs' --source-maps", |
19 |
| - "build:types": "tsc --project tsconfig.build.json --module esnext --declarationDir ./dist/types --emitDeclarationOnly --declaration --declarationMap", |
20 | 19 | "clean": "rimraf dist",
|
21 |
| - "postbuild:cjs": "echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json", |
22 |
| - "postbuild:esm": "echo '{\"type\":\"module\"}' > dist/esm/package.json", |
23 | 20 | "format": "rome format . --write",
|
24 | 21 | "lint": "eslint .",
|
25 | 22 | "lint:fix": "eslint . --fix",
|
|
31 | 28 | "keywords": [],
|
32 | 29 | "author": "",
|
33 | 30 | "license": "ISC",
|
34 |
| - "types": "./dist/types/index.d.ts", |
35 |
| - "typings": "./dist/types/index.d.ts", |
36 | 31 | "devDependencies": {},
|
37 | 32 | "dependencies": {
|
38 | 33 | "@rabbitholegg/questdk-plugin-utils": "workspace:*",
|
|
0 commit comments