Skip to content

Commit

Permalink
Fix the build script (#890)
Browse files Browse the repository at this point in the history
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
  • Loading branch information
jaulz and sindresorhus committed Oct 3, 2019
1 parent 76ab7e0 commit 904fcbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -4,7 +4,7 @@
"description": "Simplified HTTP requests",
"license": "MIT",
"repository": "sindresorhus/got",
"main": "dist",
"main": "dist/source",
"engines": {
"node": ">=8.6"
},
Expand Down Expand Up @@ -83,7 +83,7 @@
"typescript": "3.6.3",
"xo": "^0.24.0"
},
"types": "dist",
"types": "dist/source",
"browser": {
"decompress-response": false,
"electron": false
Expand Down
5 changes: 4 additions & 1 deletion source/index.ts
@@ -1,7 +1,10 @@
import packageJson = require('../package.json');
import * as fs from 'fs';
import * as path from 'path';
import create from './create';
import {Defaults} from './utils/types.js';

const packageJson = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf8'));

const defaults: Partial<Defaults> = {
options: {
method: 'GET',
Expand Down

0 comments on commit 904fcbe

Please sign in to comment.