diff --git a/.gitignore b/.gitignore index b590eae..8eeaf02 100644 --- a/.gitignore +++ b/.gitignore @@ -89,7 +89,3 @@ typings/ # DynamoDB Local files .dynamodb/ - -# Temp files for publication -/src/package.json -/src/README.md diff --git a/Makefile b/Makefile index ee3ce70..acd0219 100644 --- a/Makefile +++ b/Makefile @@ -11,5 +11,4 @@ all: publish: yarn install yarn build - yarn run copy - cd src && yarn publish --no-git-tag-version --access public --new-version $(PUBLISH_VERSION) + yarn publish --no-git-tag-version --new-version $(PUBLISH_VERSION) diff --git a/package.json b/package.json index b1c9e7b..9c9a710 100644 --- a/package.json +++ b/package.json @@ -1,32 +1,38 @@ { "name": "@docker/actions-toolkit", "description": "Toolkit for Docker (GitHub) Actions", - "main": "index.js", "scripts": { "build": "tsc", "lint": "eslint src/**/*.ts __tests__/**/*.ts", "format": "eslint --fix src/**/*.ts __tests__/**/*.ts", - "test": "jest --coverage", - "copy": "cpy package.json README.md src" + "test": "jest --coverage" }, "repository": { "type": "git", "url": "git+https://github.com/docker/actions-toolkit.git" }, "keywords": [ + "github", "actions", "docker", "build", - "push" + "buildx", + "buildkit" ], "author": "Docker Inc.", - "contributors": [ - { - "name": "CrazyMax", - "url": "https://crazymax.dev" - } - ], "license": "Apache-2.0", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "directories": { + "lib": "lib", + "test": "__tests__" + }, + "files": [ + "lib" + ], + "publishConfig": { + "access": "public" + }, "dependencies": { "@actions/core": "^1.10.0", "@actions/exec": "^1.1.1", diff --git a/tsconfig.json b/tsconfig.json index 47183d4..738674a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,18 +1,21 @@ { "compilerOptions": { + "esModuleInterop": true, "target": "es6", "module": "commonjs", + "strict": true, + "declaration": true, + "sourceMap": true, "newLine": "lf", "outDir": "./lib", "rootDir": "./src", - "esModuleInterop": true, "forceConsistentCasingInFileNames": true, - "strict": true, "noImplicitAny": false, "resolveJsonModule": true, "useUnknownInCatchVariables": false, }, "exclude": [ + "./lib/**/*", "node_modules", "**/*.test.ts", "jest.config.ts"