|
1 | 1 | { |
2 | 2 | "name": "atom-typescript", |
3 | 3 | "version": "13.9.3", |
4 | | - "main": "./dist/atomts.js", |
| 4 | + "main": "./loader.js", |
| 5 | + "bundle": "./dist/main.js", |
5 | 6 | "preferGlobal": true, |
6 | 7 | "description": "The only TypeScript plugin you will ever need.", |
7 | 8 | "atomTestRunner": "./node_modules/atom-ts-spec-runner/runner.js", |
|
16 | 17 | }, |
17 | 18 | "scripts": { |
18 | 19 | "tsc": "tsc -p ./lib", |
19 | | - "dev": "cross-env NODE_ENV=development parcel watch --target main lib/main/atomts.ts", |
20 | | - "build": "cross-env NODE_ENV=production parcel build --target main lib/main/atomts.ts", |
| 20 | + "dev": "cross-env NODE_ENV=development parcel watch --target bundle lib/main/atomts.ts", |
| 21 | + "build": "cross-env NODE_ENV=production parcel build --target bundle lib/main/atomts.ts", |
21 | 22 | "prettier": "ts-node scripts/prettier.ts write", |
22 | 23 | "prettier-check": "ts-node scripts/prettier.ts check", |
23 | 24 | "typecheck": "tsc --noEmit -p ./lib && tsc --noEmit -p ./scripts && tsc --noEmit -p ./spec", |
|
393 | 394 | "@types/node": "^12.12.50", |
394 | 395 | "@types/resolve": "^1.17.1", |
395 | 396 | "atom-ts-spec-runner": "^1.1.1", |
| 397 | + "atom-ts-transpiler": "^1.5.2", |
396 | 398 | "chai": "^4.2.0", |
397 | 399 | "prettier": "^2.1.2", |
398 | 400 | "ts-node": "^9.0.0", |
|
407 | 409 | "atom-ide-ui:0.13.0" |
408 | 410 | ], |
409 | 411 | "targets": { |
410 | | - "main": { |
| 412 | + "bundle": { |
411 | 413 | "context": "electron-renderer", |
412 | 414 | "engines": { |
413 | 415 | "electron": ">=5.x" |
|
421 | 423 | "isLibrary": true |
422 | 424 | } |
423 | 425 | }, |
| 426 | + "atomTranspilers": [ |
| 427 | + { |
| 428 | + "transpiler": "atom-ts-transpiler", |
| 429 | + "glob": "{!(node_modules)/**/,}*.ts?(x)", |
| 430 | + "options": { |
| 431 | + "compilerOptions": { |
| 432 | + "target": "es2017", |
| 433 | + "module": "commonjs" |
| 434 | + }, |
| 435 | + "cacheKeyFiles": [], |
| 436 | + "verbose": false |
| 437 | + } |
| 438 | + } |
| 439 | + ], |
424 | 440 | "keywords": [ |
425 | 441 | "typescript", |
426 | 442 | "javascript", |
|
0 commit comments