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

Commitec2e0e0

Browse files
committed
absolute path typings
1 parent0a3e395 commitec2e0e0

File tree

13 files changed

+34
-25
lines changed

13 files changed

+34
-25
lines changed

‎src/editor/commands/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as vscode from 'vscode'
22
import{join}from'path'
33
import{setStorage}from'../storage'
44
importReactWebViewfrom'../ReactWebView'
5-
import*asCRfrom'../../typings'
5+
import*asCRfrom'typings'
66

77
constCOMMANDS={
88
START:'coderoad.start',

‎src/editor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import*asvscodefrom'vscode'
2-
import*asCRfrom'../typings'
2+
import*asCRfrom'typings'
33
import{createCommands}from'./commands'
44

55
interfaceProps{

‎src/state/message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// import panel from '../views/Panel'
2-
import*asCRfrom'../typings'
2+
import*asCRfrom'typings'
33

44
exportconstonSend=(action:CR.Action)=>{
55
// if (!panel || !panel.currentPanel) {

‎tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"experimentalDecorators":true,
2323
"emitDecoratorMetadata":true,
2424
"paths": {
25-
"typings": ["./typings/index.d.ts"],
25+
"typings": ["../typings/index.d.ts"],
2626
},
2727
},
2828
"exclude": [
File renamed without changes.

‎src/typings/index.d.tsrenamed to‎typings/index.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import{onReceive}from"state/message";
2-
31
exportinterfaceTutorialLevel{
42
stageList:string[]
53
content:{

‎web-app/src/components/Continue/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import*asReactfrom'react'
2-
importCRfrom'../../../../src/typings'
2+
importCRfrom'typings'
33

44
importContinueItemfrom'./ContinueItem'
55

‎web-app/src/components/Level/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import*asReactfrom'react'
22
import{Button,Card}from'@alifd/next'
3-
importCRfrom'../../../../src/typings'
3+
importCRfrom'typings'
44

55
conststyles={
66
card:{

‎web-app/src/components/Stage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import*asReactfrom'react'
22
import{Button,Card}from'@alifd/next'
3-
importCRfrom'../../../../src/typings'
3+
importCRfrom'typings'
44

55
importStepfrom'../Step'
66

‎web-app/src/components/Step/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import*asReactfrom'react'
22
import{Checkbox}from'@alifd/next'
33
// import CC from '../../typings/client'
4-
importCRfrom'../../../../src/typings'
4+
importCRfrom'typings'
55

66
conststyles={
77
card:{

‎web-app/src/components/Summary/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import*asReactfrom'react'
22
import{Button,Card}from'@alifd/next'
3-
importCRfrom'../../../../src/typings'
3+
importCRfrom'typings'
44

55
conststyles={
66
card:{

‎web-app/tsconfig.json

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
2+
"extends":"./tsconfig.paths.json",
23
"compilerOptions": {
34
"target":"es5",
45
"lib": [
56
"dom",
7+
"dom.iterable",
68
"esnext"
79
],
810
"allowJs":true,
@@ -16,21 +18,9 @@
1618
"resolveJsonModule":true,
1719
"isolatedModules":true,
1820
"noEmit":true,
19-
"jsx":"preserve",
20-
"sourceMap":true,
21-
"rootDirs": ["src","stories"],
22-
"baseUrl":"src",
23-
"outDir":"build"
21+
"jsx":"preserve"
2422
},
2523
"include": [
26-
"src",
27-
"../src/typings"
28-
],
29-
"exclude": [
30-
"node_modules",
31-
"build",
32-
"scripts",
33-
"jest",
34-
"public"
24+
"src"
3525
]
3626
}

‎web-app/tsconfig.paths.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl":"src",
4+
"rootDirs": [
5+
"src",
6+
"stories"
7+
],
8+
"paths": {
9+
"typings": [
10+
"../../typings/index.d.ts"
11+
],
12+
}
13+
},
14+
"exclude": [
15+
"node_modules",
16+
"build",
17+
"scripts",
18+
"jest",
19+
"public"
20+
]
21+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp