tk-base upgrade for es module

This commit is contained in:
Michaël Lemaire 2019-09-25 23:18:40 +02:00
parent 645a7e6340
commit 63de98abbe
4 changed files with 915 additions and 3024 deletions

View file

@ -1,14 +1,11 @@
image: node:latest
stages:
- test
cache:
paths:
- node_modules/
test:
stage: test
before_script:
- npm install
script:
- npm install -D
- npm test

3901
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{
"name": "tk-serializer",
"version": "1.1.1",
"version": "1.1.2",
"description": "Typescript/Javascript serializer, with full object reconstruction",
"author": {
"name": "Michaël Lemaire",
@ -12,21 +12,21 @@
},
"license": "ISC",
"source": "src/index.ts",
"main": "dist/tk-serializer.js",
"umd:main": "dist/tk-serializer.js",
"types": "dist/src/index.d.ts",
"main": "dist/tk-serializer.umd.js",
"module": "dist/tk-serializer.modern.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "npx tk-base build",
"test": "npx tk-base test",
"build": "npx --no-install tk-base build",
"test": "npx --no-install tk-base test",
"prepare": "npm run build",
"prepublishOnly": "npm test",
"normalize": "npx tk-base normalize"
"normalize": "npx --no-install tk-base normalize"
},
"files": [
"/src",
"/dist"
],
"devDependencies": {
"tk-base": "^0.1.7"
"tk-base": "^0.2.0"
}
}

View file

@ -1,15 +1,16 @@
{
"compilerOptions": {
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"preserveConstEnums": true,
"strict": true,
"declaration": true,
"moduleResolution": "node",
"esModuleInterop": true,
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"preserveConstEnums": true,
"declaration": true,
"target": "es6",
"lib": [
"dom",
"es6"
],
"target": "es6"
]
}
}