|
7 | 7 | "directory": "packages/auth-providers/firebase/web"
|
8 | 8 | },
|
9 | 9 | "license": "MIT",
|
10 |
| - "main": "./dist/index.js", |
| 10 | + "type": "module", |
| 11 | + "exports": { |
| 12 | + ".": { |
| 13 | + "import": { |
| 14 | + "types": "./dist/index.d.ts", |
| 15 | + "default": "./dist/index.js" |
| 16 | + }, |
| 17 | + "default": { |
| 18 | + "types": "./dist/cjs/index.d.ts", |
| 19 | + "default": "./dist/cjs/index.js" |
| 20 | + } |
| 21 | + }, |
| 22 | + "./dist/firebase": { |
| 23 | + "import": { |
| 24 | + "types": "./dist/firebase.d.ts", |
| 25 | + "default": "./dist/firebase.js" |
| 26 | + }, |
| 27 | + "default": { |
| 28 | + "types": "./dist/cjs/firebase.d.ts", |
| 29 | + "default": "./dist/cjs/firebase.js" |
| 30 | + } |
| 31 | + } |
| 32 | + }, |
| 33 | + "main": "./dist/cjs/index.js", |
| 34 | + "module": "./dist/index.js", |
11 | 35 | "types": "./dist/index.d.ts",
|
12 | 36 | "files": [
|
13 | 37 | "dist"
|
14 | 38 | ],
|
15 | 39 | "scripts": {
|
16 |
| - "build": "yarn build:js && yarn build:types", |
17 |
| - "build:js": "babel src -d dist --extensions \".js,.jsx,.ts,.tsx\" --copy-files --no-copy-ignored", |
| 40 | + "build": "tsx ./build.ts", |
18 | 41 | "build:pack": "yarn pack -o redwoodjs-auth-firebase-web.tgz",
|
19 |
| - "build:types": "tsc --build --verbose", |
| 42 | + "build:types": "tsc --build --verbose ./tsconfig.build.json", |
| 43 | + "build:types-cjs": "tsc --build --verbose ./tsconfig.cjs.json", |
20 | 44 | "build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx,template\" --ignore dist --exec \"yarn build\"",
|
| 45 | + "check:attw": "yarn rw-fwtools-attw", |
| 46 | + "check:package": "concurrently npm:check:attw yarn:publint", |
21 | 47 | "prepublishOnly": "NODE_ENV=production yarn build",
|
22 | 48 | "test": "vitest run",
|
23 | 49 | "test:watch": "vitest watch"
|
24 | 50 | },
|
25 | 51 | "dependencies": {
|
26 |
| - "@babel/runtime-corejs3": "7.25.0", |
27 |
| - "@redwoodjs/auth": "workspace:*", |
28 |
| - "core-js": "3.38.0" |
| 52 | + "@redwoodjs/auth": "workspace:*" |
29 | 53 | },
|
30 | 54 | "devDependencies": {
|
31 |
| - "@babel/cli": "7.24.8", |
32 |
| - "@babel/core": "^7.22.20", |
| 55 | + "@redwoodjs/framework-tools": "workspace:*", |
33 | 56 | "@types/react": "^18.2.55",
|
| 57 | + "concurrently": "8.2.2", |
34 | 58 | "firebase": "10.13.1",
|
| 59 | + "publint": "0.2.10", |
35 | 60 | "react": "19.0.0-rc-8269d55d-20240802",
|
| 61 | + "tsx": "4.17.0", |
36 | 62 | "typescript": "5.5.4",
|
37 | 63 | "vitest": "2.0.5"
|
38 | 64 | },
|
|
0 commit comments