Skip to content

Commit

Permalink
add ncc
Browse files Browse the repository at this point in the history
  • Loading branch information
galElmalah committed Nov 10, 2021
1 parent 973d8e0 commit 4111990
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/scaffolder-cli/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ typings
*.iml
test/e2e/screenshots
.yo-rc.json
build
1 change: 1 addition & 0 deletions packages/scaffolder-cli/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
14
13 changes: 7 additions & 6 deletions packages/scaffolder-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions packages/scaffolder-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scaffolder-cli",
"version": "1.9.11",
"version": "1.9.12",
"bin": {
"scaff": "./dist/cli.js"
},
Expand All @@ -14,9 +14,10 @@
"main": "index.js",
"preversion": "npm test",
"scripts": {
"pkg": "ncc build build/cli.js -o dist",
"preversion": "npm test",
"test": "npm run build && jest",
"build": "rm -rf ./dist && tsc",
"build": "tsc && npm run pkg",
"test:watch": "jest --watch"
},
"author": "Gal ELmalah",
Expand All @@ -27,6 +28,7 @@
"@types/commander": "^2.12.2",
"@types/fs-extra": "^9.0.2",
"@types/node": "^14.6.2",
"@vercel/ncc": "^0.31.1",
"babel-jest": "^26.5.2",
"eslint": "^7.5.0",
"jest": "^26.4.2",
Expand Down Expand Up @@ -56,4 +58,4 @@
"url": "https://github.com/galElmalah/scaffolder"
},
"gitHead": "7fe69222db98c203625b863256e92aea730605b5"
}
}
4 changes: 2 additions & 2 deletions packages/scaffolder-cli/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"outDir": "./dist",
"outDir": "./build",
"esModuleInterop": true,
},
"files": ["cli.ts", "./src/cliCommandHandlers/getChosenTemplate.ts", "./src/cliCommandHandlers/createChosenTemplate.ts"],
"files": ["cli.ts"],
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"target": "es2019",
"allowJs": true,
"noImplicitAny": false,
"preserveConstEnums": true,
Expand Down

0 comments on commit 4111990

Please sign in to comment.