Merge pull request #5025 from gregorytoprak/npm-pkg-fixes

npm: build ts -> js files before publishing
This commit is contained in:
matildepark 2021-06-17 10:22:43 -05:00 committed by GitHub
commit 923e6683a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@urbit/api",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"repository": {
"type": "git",
@ -10,6 +10,7 @@
"main": "dist/index.js",
"types": "dist/index.d",
"scripts": {
"prepublish": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "onchange './**/*.ts' -e './dist/**' -- npm run build",
"build": "npm run clean && tsc -p tsconfig.json",

View File

@ -5,7 +5,7 @@
"outDir": "./dist",
"module": "ES2020",
"noImplicitAny": true,
"target": "ES2020",
"target": "ES2017",
"pretty": true,
"moduleResolution": "node",
"esModuleInterop": true,

View File

@ -1,6 +1,6 @@
{
"name": "@urbit/http-api",
"version": "1.2.1",
"version": "1.2.2",
"license": "MIT",
"description": "Library to interact with an Urbit ship over HTTP",
"repository": {
@ -15,6 +15,7 @@
"src"
],
"scripts": {
"prepublish": "npm run build",
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "onchange './*.ts' -- npm run build",
"build": "npm run clean && tsc -p tsconfig.json",