Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-packages
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
许振钊
ydl-packages
Commits
12a39ce0
Commit
12a39ce0
authored
Aug 18, 2022
by
xuzhenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore(custom): ts target set 'es5'
.gitignore add macos temp package.json add typedoc script
parent
ca609c57
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
package.json
package.json
+1
-2
package.json
packages/toolkit/package.json
+2
-1
tsconfig.json
packages/toolkit/tsconfig.json
+1
-1
vite.config.ts
packages/toolkit/vite.config.ts
+2
-3
No files found.
package.json
View file @
12a39ce0
...
...
@@ -9,8 +9,7 @@
"next"
:
"bash scripts/publish-next.sh"
,
"commit"
:
"git add . && npx cz-customizable"
,
"preinstall"
:
"npx only-allow pnpm"
,
"lib"
:
"pnpm --filter=@ydl-packages/* run lib"
,
"prepublishOnly"
:
"npm run lib"
"lib"
:
"pnpm --filter=@ydl-packages/* run lib"
},
"keywords"
:
[],
"author"
:
"xuzhenzhao"
,
...
...
packages/toolkit/package.json
View file @
12a39ce0
...
...
@@ -6,7 +6,8 @@
"scripts"
:
{
"lib"
:
"npx vite build"
,
"test"
:
"npx jest __tests__"
,
"doc"
:
"npx typedoc"
"doc"
:
"npx typedoc"
,
"prepublishOnly"
:
"npm run lib"
},
"keywords"
:
[
"pay"
,
...
...
packages/toolkit/tsconfig.json
View file @
12a39ce0
...
...
@@ -11,7 +11,7 @@
//
"disableReferencedProjectLoad"
:
true
,
/*
Reduce
the
number
of
projects
loaded
automatically
by
TypeScript.
*/
/*
Language
and
Environment
*/
"target"
:
"es
201
5"
,
/*
Set
the
JavaScript
language
version
for
emitted
JavaScript
and
include
compatible
library
declarations.
*/
"target"
:
"es5"
,
/*
Set
the
JavaScript
language
version
for
emitted
JavaScript
and
include
compatible
library
declarations.
*/
//
"lib"
:
[],
/*
Specify
a
set
of
bundled
library
declaration
files
that
describe
the
target
runtime
environment.
*/
//
"jsx"
:
"preserve"
,
/*
Specify
what
JSX
code
is
generated.
*/
//
"experimentalDecorators"
:
true
,
/*
Enable
experimental
support
for
TC
39
stage
2
draft
decorators.
*/
...
...
packages/toolkit/vite.config.ts
View file @
12a39ce0
import
path
from
'path'
import
{
defineConfig
}
from
'vite'
import
{
defineConfig
}
from
'vite'
import
dts
from
'vite-plugin-dts'
export
default
defineConfig
(()
=>
{
return
{
resolve
:
{
...
...
@@ -11,7 +10,7 @@ export default defineConfig(() => {
}
},
build
:
{
target
:
"es2015"
,
target
:
'es2015'
,
lib
:
{
entry
:
path
.
resolve
(
__dirname
,
'src/index'
),
...
...
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