Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitca160e7

Browse files
committed
Add example with errors
1 parentfae9a15 commitca160e7

File tree

14 files changed

+141
-10
lines changed

14 files changed

+141
-10
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.vscode
22
node_modules
33
example/no-errors/dist/
4+
example/with-errors/dist/

‎example/no-errors/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name":"example",
2+
"name":"example-with-no-errors",
33
"version":"0.0.0",
44
"description":"",
55
"main":"build.js",

‎example/with-errors/build.js‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
constts=require("../../index");
2+
3+
ts.compile({
4+
compilerOptions:{
5+
project:__dirname,
6+
sourceMap:true,
7+
declaration:true
8+
}
9+
});
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import{SomeType}from"./utils";
2+
export{SomeType};

‎example/with-errors/dist/index.js‎

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

‎example/with-errors/dist/index.js.map‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exportdefaultfunctiondoSomeStuff():number;
2+
exportdeclaretypeSomeType={
3+
a:number;
4+
};

‎example/with-errors/dist/utils.js‎

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

‎example/with-errors/dist/utils.js.map‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎example/with-errors/package.json‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name":"example-with-errors",
3+
"version":"0.0.0",
4+
"description":"",
5+
"main":"build.js",
6+
"scripts": {
7+
"build":"node ./build.js"
8+
},
9+
"keywords": [],
10+
"author":"Stanislav Sysoev <@d4rkr00t>",
11+
"license":"MIT"
12+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp