Skip to content

Commit

Permalink
fix: fix the github action workflow and compilation making relative r…
Browse files Browse the repository at this point in the history
…equire fail issue (#658)
  • Loading branch information
ShenChen93 committed Oct 8, 2020
1 parent 148fad2 commit 895c88e
Show file tree
Hide file tree
Showing 39 changed files with 157 additions and 272 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/ask-sdk-core-unit-test.yml

This file was deleted.

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/ask-sdk-express-adapter-unit-test.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/ask-sdk-runtime-unit-test.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/ask-sdk-s3-persistence-adapter-unit-test.yml

This file was deleted.

9 changes: 1 addition & 8 deletions .github/workflows/ask-sdk-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@ on:
push:
branches:
- 2.0.x
paths:
- 'ask-sdk/**'
pull_request:
branches:
- 2.0.x
paths:
- 'ask-sdk/**'

defaults:
run:
working-directory: ask-sdk

jobs:
build:
Expand All @@ -30,5 +22,6 @@ jobs:
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm run bootstrap
- run: npm run build
- run: npm run test
34 changes: 0 additions & 34 deletions .github/workflows/ask-sdk-v1adapter-unit-test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion ask-sdk-core/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"modules": true,
"impliedStrict": true
},
"project": "tsconfig.json"
"project": ["tsconfig.json", "tst/tsconfig.json"]
},
"rules": {

Expand Down
4 changes: 2 additions & 2 deletions ask-sdk-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "ask-sdk-core",
"version": "2.9.0",
"description": "Core package for Alexa Skills Kit SDK",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc && npm run lint",
"compile": "tsc",
Expand Down
31 changes: 15 additions & 16 deletions ask-sdk-core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"moduleResolution": "node",
"rootDir": "./",
"outDir" : "dist",
"sourceMap" : true,
"alwaysStrict" : true,
"declaration" : true,
"lib": []
},
"include": [
"lib",
"tst"
]
}
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"moduleResolution": "node",
"rootDir": "./lib",
"outDir" : "dist",
"sourceMap" : true,
"alwaysStrict" : true,
"declaration" : true,
"lib": []
},
"include": [
"lib"
]
}
13 changes: 13 additions & 0 deletions ask-sdk-core/tst/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"moduleResolution": "node",
"rootDir": "./",
"outDir" : "dist",
"sourceMap" : true,
"alwaysStrict" : true,
"declaration" : true,
"lib": []
}
}
2 changes: 1 addition & 1 deletion ask-sdk-dynamodb-persistence-adapter/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"modules": true,
"impliedStrict": true
},
"project": "tsconfig.json"
"project": ["tsconfig.json", "tst/tsconfig.json"]
},
"rules": {

Expand Down
4 changes: 2 additions & 2 deletions ask-sdk-dynamodb-persistence-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "ask-sdk-dynamodb-persistence-adapter",
"version": "2.9.0",
"description": "DynamoDB based implementation package of PersistenceAdapter interface in ASK SDK v2 for Node.js",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc && npm run lint",
"compile": "tsc",
Expand Down
5 changes: 2 additions & 3 deletions ask-sdk-dynamodb-persistence-adapter/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
"target": "es2017",
"module": "commonjs",
"moduleResolution": "node",
"rootDir": "./",
"rootDir": "./lib",
"outDir" : "dist",
"sourceMap" : true,
"alwaysStrict" : true,
"declaration" : true,
"lib": []
},
"include": [
"lib",
"tst"
"lib"
]
}
13 changes: 13 additions & 0 deletions ask-sdk-dynamodb-persistence-adapter/tst/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"target": "es2017",
"module": "commonjs",
"moduleResolution": "node",
"rootDir": "./",
"outDir" : "dist",
"sourceMap" : true,
"alwaysStrict" : true,
"declaration" : true,
"lib": []
}
}
2 changes: 1 addition & 1 deletion ask-sdk-express-adapter/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"modules": true,
"impliedStrict": true
},
"project": "tsconfig.json"
"project": ["tsconfig.json", "tst/tsconfig.json"]
},
"rules": {

Expand Down
4 changes: 2 additions & 2 deletions ask-sdk-express-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "ask-sdk-express-adapter",
"version": "2.1.0",
"description": "Express adapter package for Alexa Skills Kit SDK",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc && npm run lint",
"compile": "tsc",
Expand Down
5 changes: 2 additions & 3 deletions ask-sdk-express-adapter/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@
"target": "es2017",
"module": "commonjs",
"moduleResolution": "node",
"rootDir": "./",
"rootDir": "./lib",
"outDir" : "dist",
"sourceMap" : true,
"alwaysStrict" : true,
"declaration" : true,
"lib": []
},
"include": [
"lib",
"tst"
"lib"
]
}

0 comments on commit 895c88e

Please sign in to comment.