@utoo/pack-shared 0.0.7 → 1.1.8-rc.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.
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "0.0.7",
3
+ "version": "1.1.8-rc.2",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
+ "types": "esm/index.d.ts",
6
7
  "exports": {
7
8
  ".": {
9
+ "types": "./esm/index.d.ts",
8
10
  "import": "./esm/index.js",
9
11
  "require": "./cjs/index.js"
10
12
  },
@@ -13,23 +15,24 @@
13
15
  "./package.json": "./package.json"
14
16
  },
15
17
  "files": [
16
- "./cjs/*.js",
17
- "./cjs/*.d.ts",
18
- "./esm/*.js",
19
- "./esm/*.d.ts"
18
+ "cjs",
19
+ "esm"
20
20
  ],
21
21
  "scripts": {
22
22
  "build:cjs": "rm -rf cjs && tsc -p ./tsconfig.json --module commonjs --outDir cjs",
23
23
  "build:esm": "rm -rf esm && tsc -p ./tsconfig.json --module esnext --outDir esm",
24
- "build": "npm run build:cjs && npm run build:esm"
24
+ "build": "npm run build:cjs && npm run build:esm",
25
+ "clean": "rm -rf cjs esm",
26
+ "prepublishOnly": "turbo run build --filter=@utoo/pack-shared"
25
27
  },
26
28
  "dependencies": {
27
29
  "@babel/code-frame": "7.22.5",
28
30
  "picocolors": "^1.1.1"
29
31
  },
30
32
  "devDependencies": {
31
- "typescript": "^5.8.3",
32
- "@types/babel__code-frame": "7.0.2"
33
+ "@types/babel__code-frame": "7.0.2",
34
+ "@types/webpack": "^5.28.5",
35
+ "typescript": "^5.8.3"
33
36
  },
34
37
  "engines": {
35
38
  "node": ">= 20"