|
4 | 4 | "description": "An implementation of the Glean SDK, a modern cross-platform telemetry client, for Javascript environments.", |
5 | 5 | "exports": { |
6 | 6 | "./package.json": "./package.json", |
7 | | - "./qt": "./dist/qt.js", |
8 | | - "./webext": "./dist/webext.js" |
| 7 | + "./webext": "./dist/webext/index/webext.js", |
| 8 | + "./webext/private/metrics/*": "./dist/webext/core/metrics/types/*.js", |
| 9 | + "./webext/private/ping": "./dist/webext/core/pings/index.js" |
| 10 | + }, |
| 11 | + "typesVersions": { |
| 12 | + "*": { |
| 13 | + "webext/*": [ |
| 14 | + "./dist/webext/types/*" |
| 15 | + ] |
| 16 | + } |
9 | 17 | }, |
10 | 18 | "files": [ |
11 | 19 | "README.md", |
12 | 20 | "package.json", |
13 | | - "dist/**/*.js" |
| 21 | + "dist/**/*" |
14 | 22 | ], |
15 | 23 | "scripts": { |
16 | 24 | "test": "npm run test:core && npm run test:platform", |
17 | | - "test:core": "ts-mocha \"tests/core/**/*.spec.ts\" --paths -p ./tsconfig.json --recursive", |
18 | | - "test:platform": "npm run build:test-webext && ts-mocha \"tests/platform/**/*.spec.ts\" --paths -p ./tsconfig.json --recursive --timeout 0", |
| 25 | + "test:core": "ts-mocha \"tests/core/**/*.spec.ts\" --recursive", |
| 26 | + "test:platform": "npm run build:test-webext && ts-mocha \"tests/platform/**/*.spec.ts\" --recursive --timeout 0", |
19 | 27 | "build:test-webext": "cd tests/platform/utils/webext/sample/ && npm install && npm run build:xpi", |
20 | 28 | "lint": "eslint . --ext .ts,.js,.json --max-warnings=0", |
21 | 29 | "fix": "eslint . --ext .ts,.js,.json --fix", |
22 | | - "build": "webpack --config webpack.config.js --mode production", |
23 | | - "dev": "webpack --watch --config webpack.config.js --mode development --devtool inline-source-map", |
24 | | - "prepublishOnly": "cp ../README.md ./README.md && npm run build", |
| 30 | + "build:webext:lib": "tsc -p ./tsconfig/webext/index.json", |
| 31 | + "build:webext:types": "tsc -p ./tsconfig/webext/types.json", |
| 32 | + "build:webext": "npm run build:webext:lib && npm run build:webext:types", |
| 33 | + "build:qt": "webpack --config webpack.config.qt.js --mode production", |
| 34 | + "prepublishOnly": "cp ../README.md ./README.md && npm run build:webext", |
25 | 35 | "postpublish": "rm ./README.md" |
26 | 36 | }, |
27 | 37 | "repository": { |
|
0 commit comments