Skip to content

Commit 93364a9

Browse files
committed
to overcome Cannot find module './versionInfo' from 'src/index.ts'
1 parent b3d60d3 commit 93364a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ import * as tabs from './tabs'
6767
import * as utils from './utils'
6868
import * as login from './login/login'
6969
import * as widgets from './widgets/index'
70-
import versionInfo from './versionInfo'
70+
import { versionInfo } from './versionInfo'
7171
import { initHeader } from './header'
7272
import { initFooter } from './footer'
7373
import * as createTypes from './create/types'

timestamp.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Timestamp a git/npm project in node JS
2-
echo "export default {"
2+
echo "export const versionInfo = {"
33
date -u '+buildTime: "%Y-%m-%dT%H:%M:%SZ",'
44
git log | grep commit | head -1 | sed -e 's/ /: "/' | sed -e 's/$/",/'
55
echo npmInfo:

0 commit comments

Comments
 (0)