Skip to content

Commit b7dfe8c

Browse files
committed
remove use of tsconfig-paths
1 parent d53dba2 commit b7dfe8c

13 files changed

+12
-15
lines changed

.mocharc.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
'use strict';
22

33
require("ts-node/register");
4-
require("tsconfig-paths/register");
54

65
module.exports = {
76
diff: true,

package-lock.json

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
"rimraf": "latest",
8383
"ts-loader": "latest",
8484
"ts-node": "latest",
85-
"tsconfig-paths": "latest",
8685
"typescript": "latest",
8786
"webpack": "latest",
8887
"webpack-cli": "latest"

test/decode-blob.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from "assert";
2-
import { encode, decode, decodeAsync } from "@msgpack/msgpack";
2+
import { encode, decode, decodeAsync } from "../src/index";
33

44
(typeof Blob !== "undefined" ? describe : describe.skip)("Blob", () => {
55
it("decodes it with `decode()`", async function () {

test/decodeMulti.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from "assert";
2-
import { encode, decodeMulti } from "@msgpack/msgpack";
2+
import { encode, decodeMulti } from "../src/index";
33

44
describe("decodeMulti", () => {
55
it("decodes multiple objects in a single binary", () => {

test/decodeMultiStream.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from "assert";
2-
import { encode, decodeMultiStream } from "@msgpack/msgpack";
2+
import { encode, decodeMultiStream } from "../src/index";
33

44
describe("decodeStream", () => {
55
it("decodes stream", async () => {

test/encode.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from "assert";
2-
import { encode, decode } from "@msgpack/msgpack";
2+
import { encode, decode } from "../src/index";
33

44
describe("encode", () => {
55
context("sortKeys", () => {

test/msgpack-test-suite.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import assert from "assert";
22
import util from "util";
33
import { Exam } from "msgpack-test-js";
44
import { MsgTimestamp } from "msg-timestamp";
5-
import { encode, decode, ExtensionCodec, EXT_TIMESTAMP, encodeTimeSpecToTimestamp } from "@msgpack/msgpack";
5+
import { encode, decode, ExtensionCodec, EXT_TIMESTAMP, encodeTimeSpecToTimestamp } from "../src/index";
66

77
const extensionCodec = new ExtensionCodec();
88
extensionCodec.register({

test/prototype-pollution.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { throws } from "assert";
2-
import { encode, decode, DecodeError } from "@msgpack/msgpack";
2+
import { encode, decode, DecodeError } from "../src/index";
33

44
describe("prototype pollution", () => {
55
context("__proto__ exists as a map key", () => {

test/readme.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { deepStrictEqual } from "assert";
2-
import { encode, decode } from "@msgpack/msgpack";
2+
import { encode, decode } from "../src/index";
33

44
describe("README", () => {
55
context("## Synopsis", () => {

test/reuse-instances.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { deepStrictEqual } from "assert";
2-
import { Encoder, Decoder, decode } from "@msgpack/msgpack";
2+
import { Encoder, Decoder, decode } from "../src/index";
33

44
const createStream = async function* (...args: any) {
55
for (const item of args) {

test/whatwg-streams.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { deepStrictEqual } from "assert";
2-
import { decodeAsync, encode, decodeArrayStream } from "@msgpack/msgpack";
2+
import { decodeAsync, encode, decodeArrayStream } from "../src/index";
33

44
const isReadableStreamConstructorAvailable: boolean = (() => {
55
try {

tsconfig.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
/* Module Resolution Options */
4646
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
4747
"baseUrl": "./", /* Base directory to resolve non-absolute module names. */
48-
"paths": {
49-
"@msgpack/msgpack": ["./src"]
50-
}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
48+
// "paths": {
49+
// "@msgpack/msgpack": ["./src"]
50+
// }, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */
5151
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */
5252
// "typeRoots": [], /* List of folders to include type definitions from. */
5353
// "types": [], /* Type declaration files to be included in compilation. */

0 commit comments

Comments
 (0)