Skip to content

Commit e0af367

Browse files
authored
Prep package for publishing to NPM (#65)
* Add repository to package.json * Add description and license to package.json. * Add .npmignore to exclude source files.
1 parent 78260ae commit e0af367

File tree

2 files changed

+34
-5
lines changed

2 files changed

+34
-5
lines changed

.npmignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
.DS_Store
2+
.gitattributes
3+
.github
4+
.history
5+
.prettierignore
6+
.prettierrc.json
7+
.project
8+
.settings
9+
.testcaferc.json
10+
.vscode
11+
*.swp
12+
*.log
13+
tsconfig.*
14+
tslint.json
15+
jest.unit.config.js
16+
nightwatch.conf.js
17+
app/
18+
build/
19+
coverage/
20+
dist/
21+
docs/
22+
integ-test-results/
23+
node_modules/
24+
scripts/
25+
src/
26+
tests_output/
27+
webpack/

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
22
"name": "aws-rum-web",
33
"version": "1.0.2",
4-
"npm-pretty-much": {
5-
"runRelease": "release",
6-
"runTest": "never"
7-
},
4+
"description": "The Amazon CloudWatch RUM web client.",
5+
"license": "Apache-2.0",
6+
"author": "Amazon CloudWatch RUM Staff <[email protected]>",
87
"main": "dist/cjs/index.js",
98
"module": "dist/es/index.js",
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/aws-observability/aws-rum-web.git"
12+
},
1013
"scripts": {
1114
"build": "npm run build:schemas && webpack --config webpack/webpack.prod.js && npm run build:es && npm run build:cjs",
1215
"build:es": "tsc --project ./tsconfig.es.json",
@@ -39,7 +42,6 @@
3942
"integ:local:nightwatch:firefox": "nightwatch -e firefox",
4043
"postinteg:local:nightwatch:firefox": "kill $(lsof -t -i:8080)"
4144
},
42-
"author": "Amazon CloudWatch RUM Staff <[email protected]>",
4345
"devDependencies": {
4446
"@babel/plugin-transform-runtime": "^7.16.0",
4547
"@babel/preset-env": "~7.6.3",

0 commit comments

Comments
 (0)