Skip to content

Commit 8c4d898

Browse files
committed
fix: publishing
1 parent 07a28c9 commit 8c4d898

4 files changed

Lines changed: 18 additions & 5 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Dependency directory
22
node_modules
3-
dist
3+
lib
44

55
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
66
# Logs

‎dist/index.js‎

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
"description": "Action for posting a message with text or embeds to a Guilded webhook",
88
"main": "dist/index.js",
99
"scripts": {
10-
"build": "tsc && npm run package",
10+
"build": "tsc && ncc build lib/index.js --minify",
1111
"format": "prettier --write '**/*.ts'",
12-
"lint": "eslint src/**/*.ts",
13-
"package": "ncc build --source-map --license LICENSE"
12+
"lint": "eslint src/**/*.ts"
1413
},
1514
"repository": {
1615
"type": "git",

‎tsconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
44
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
5-
"outDir": "./dist", /* Redirect output structure to the directory. */
5+
"outDir": "./lib", /* Redirect output structure to the directory. */
66
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
77
"strict": true, /* Enable all strict type-checking options. */
88
"noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */

0 commit comments

Comments
 (0)