Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
c7e746ed
Commit
c7e746ed
authored
Feb 04, 2021
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update normalize path for windows check
parent
daaba514
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
package.json
libs/remixd/package.json
+2
-2
utils.ts
libs/remixd/src/utils.ts
+1
-1
No files found.
libs/remixd/package.json
View file @
c7e746ed
{
{
"name"
:
"@remix-project/remixd"
,
"name"
:
"@remix-project/remixd"
,
"version"
:
"0.3.
1
"
,
"version"
:
"0.3.
2
"
,
"description"
:
"remix server: allow accessing file system from remix.ethereum.org and start a dev environment (see help section)"
,
"description"
:
"remix server: allow accessing file system from remix.ethereum.org and start a dev environment (see help section)"
,
"main"
:
"index.js"
,
"main"
:
"index.js"
,
"types"
:
"./index.d.ts"
,
"types"
:
"./index.d.ts"
,
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
"@remixproject/plugin-utils"
:
"^0.3.3"
,
"@remixproject/plugin-utils"
:
"^0.3.3"
,
"@remixproject/plugin-ws"
:
"^0.3.3"
,
"@remixproject/plugin-ws"
:
"^0.3.3"
,
"axios"
:
"^0.20.0"
,
"axios"
:
"^0.20.0"
,
"chokidar"
:
"^
3.5.1
"
,
"chokidar"
:
"^
2.1.8
"
,
"commander"
:
"^2.20.3"
,
"commander"
:
"^2.20.3"
,
"fs-extra"
:
"^3.0.1"
,
"fs-extra"
:
"^3.0.1"
,
"isbinaryfile"
:
"^3.0.2"
,
"isbinaryfile"
:
"^3.0.2"
,
...
...
libs/remixd/src/utils.ts
View file @
c7e746ed
...
@@ -29,10 +29,10 @@ function relativePath (path: string, sharedFolder: string): string {
...
@@ -29,10 +29,10 @@ function relativePath (path: string, sharedFolder: string): string {
}
}
function
normalizePath
(
path
:
string
):
string
{
function
normalizePath
(
path
:
string
):
string
{
if
(
path
===
'/'
)
path
=
'./'
if
(
process
.
platform
===
'win32'
)
{
if
(
process
.
platform
===
'win32'
)
{
return
path
.
replace
(
/
\\
/g
,
'/'
)
return
path
.
replace
(
/
\\
/g
,
'/'
)
}
}
if
(
path
===
'/'
)
path
=
'./'
return
path
return
path
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment