Skip to content

Commit

Permalink
Trying to get npm packaging working properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
tarehart committed Dec 12, 2023
1 parent 38753c9 commit 68c0164
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/**/*.js
/dist/**/*
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ coverage

# Transpiled files
build/
dist/

# VS Code
.vscode
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-appconfig-poller",
"version": "0.0.3",
"version": "0.0.4",
"description": "A wrapper around @aws-sdk/client-appconfigdata to provide background polling and caching.",
"repository": {
"type": "git",
Expand All @@ -10,6 +10,9 @@
"engines": {
"node": ">= 18.12 <21"
},
"main": "dist/src/poller.js",
"types": "dist/src/poller.d.ts",
"files": ["dist"],
"devDependencies": {
"@aws-sdk/credential-providers": "^3.470.0",
"@types/jest": "~29.5",
Expand All @@ -29,7 +32,7 @@
"yaml": "^2.3.4"
},
"scripts": {
"clean": "rimraf coverage build tmp",
"clean": "rimraf coverage build tmp lib",
"prebuild": "npm run lint",
"build": "tsc -p tsconfig.json",
"build:watch": "tsc -w -p tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"lib": ["ES2022"],
"moduleResolution": "node16",
"rootDir": ".",
"outDir": "build",
"outDir": "dist",
"allowSyntheticDefaultImports": true,
"importHelpers": true,
"alwaysStrict": true,
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.release.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"sourceMap": false,
"removeComments": true
"declaration": true,
},
"include": ["src/**/*"]
}

0 comments on commit 68c0164

Please sign in to comment.