Skip to content

Commit

Permalink
Build using tsc.
Browse files Browse the repository at this point in the history
  • Loading branch information
llambeau committed May 10, 2024
1 parent e38de86 commit 8e095c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"description": "Framework on top of RabbitMQ for easing up the development of producer/consumer/job queues.",
"version": "1.0.0-rc.1",
"author": "Louis Lambeau <[email protected]>",
"main": "dist/index.js",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
"bin": {
"arnavon": "./bin/run"
},
Expand All @@ -20,7 +21,7 @@
"test:watch": "mocha --watch tests",
"lint": "tsc && eslint src **/*.ts .eslintrc.js",
"lint:fix": "tsc && eslint --fix src tests *.ts .eslintrc.js",
"build": "shx rm -rf dist && babel ./src --out-dir ./dist --source-maps -x .ts",
"build": "shx rm -rf dist && tsc",
"build:watch": "babel ./src --watch --out-dir ./dist --source-maps --copy-files -x .ts",
"postpack": "shx rm -f oclif.manifest.json",
"prepack": "yarn build && oclif manifest && oclif readme",
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"compilerOptions": {
"rootDir": "src",
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"module": "commonjs", /* Specify what module code is generated. */
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
"declarationMap": true, /* Create sourcemaps for d.ts files. */
"emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
"emitDeclarationOnly": false, /* Only output d.ts files and not JavaScript files. */
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
"outDir": "./dist", /* Specify an output folder for all emitted files. */
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
Expand Down

0 comments on commit 8e095c8

Please sign in to comment.