Add prepublish script & fix package.json

This commit is contained in:
Philipp Krüger 2022-08-16 16:57:05 +02:00
parent 207c7d88ef
commit 013842b1b0
No known key found for this signature in database
GPG Key ID: 8048068BD2ACE7F6
2 changed files with 8 additions and 7 deletions

6
package-lock.json generated
View File

@ -1,11 +1,11 @@
{
"name": "sizes",
"name": "elmjs-inspect",
"version": "1.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "sizes",
"name": "elmjs-inspect",
"version": "1.0.0",
"license": "MIT",
"dependencies": {
@ -14,7 +14,7 @@
"node-estree": "^3.1.0"
},
"bin": {
"elmjs-inspector": "src/index.ts"
"elmjs-inspect": "bin/index.js"
},
"devDependencies": {
"@types/esprima": "^4.0.2",

View File

@ -1,16 +1,17 @@
{
"name": "sizes",
"name": "elmjs-inspect",
"version": "1.0.0",
"main": "src/index.ts",
"main": "bin/index.js",
"type": "module",
"bin": {
"elmjs-inspect": "bin/index.js"
},
"license": "MIT",
"scripts": {
"repl": "ts-node --project .",
"build": "tsc"
"build": "tsc",
"prepublishOnly": "npm run build"
},
"type": "module",
"devDependencies": {
"@types/esprima": "^4.0.2",
"@types/estree": "^0.0.51",