Skip to content

Commit 12784c0

Browse files
committed
minimal config modifications for building the package for npm
1 parent 70fa0c2 commit 12784c0

6 files changed

+197
-39
lines changed

.npmignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
src
2+
tests
3+
node_modules
4+
assets
5+
coverage
6+
out
7+
.vscode
8+
.github
9+
*.md
10+
tsconfig.json

package-lock.json

+133-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+14-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
11
{
22
"name": "ng-vs-snippets",
33
"version": "0.1.0",
4-
"description": "Automatic VS Code snippets generation of Angular projects",
5-
"main": "index.ts",
4+
"description": "Automatic VS Code snippets generation for Angular codebases",
5+
"main": "build/ng-vs-snippets.js",
6+
"types": "build/ng-vs-snippets.d.ts",
7+
"bin": {
8+
"ng-vs-snippets": "build/ng-vs-snippets.js"
9+
},
610
"scripts": {
7-
"compile": "tsc",
8-
"run": "node ./build/src/index.js",
9-
"execute": "tsc && node ./build/src/index.js",
10-
"test": "tsc && jest ./tests/*"
11+
"build:cjs": "rollup -c",
12+
"check": "tsc",
13+
"run": "node ./build/index.js",
14+
"test": "npm run build:cjs && jest ./tests/*"
1115
},
1216
"author": "roguib",
1317
"license": "ISC",
1418
"dependencies": {
1519
"@types/jest": "^26.0.20",
20+
"rollup": "^2.40.0",
21+
"rollup-plugin-add-shebang": "^0.3.1",
22+
"rollup-plugin-typescript2": "^0.30.0",
1623
"ts-jest": "^26.5.1",
1724
"ts-node": "^9.1.1",
18-
"typescript": "^4.1.5"
25+
"typescript": "^4.2.2"
1926
},
2027
"devDependencies": {
2128
"@types/node": "^14.14.21",

0 commit comments

Comments
 (0)