Skip to content

Commit ad45b82

Browse files
author
Sascha Braun
committed
UPDATED tsconfig as build had wrong structure, resulting in an empty npm repository
1 parent de002b7 commit ad45b82

File tree

6 files changed

+19
-10
lines changed

6 files changed

+19
-10
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ coverage
88
.nyc_output
99
*.log
1010

11-
package-lock.json
11+
package-lock.json
12+
yarn.lock

.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ build/docs
1212
coverage
1313
.nyc_output
1414
*.log
15+
.circleci
16+
17+
package-lock.json
18+
yarn.lock

package.json

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
{
22
"name": "vuex-simple",
3-
"version": "0.2.0",
3+
"version": "0.2.2",
44
"description": "A simpler way to write your Vuex store in Typescript",
55
"main": "build/main/index.js",
66
"typings": "build/main/index.d.ts",
77
"module": "build/module/index.js",
88
"repository": "https://github.com/sascha245/vuex-simple",
99
"license": "MIT",
10-
"keywords": [],
10+
"keywords": [
11+
"vuex",
12+
"typescript",
13+
"decorators",
14+
"class",
15+
"simple"
16+
],
1117
"scripts": {
1218
"info": "npm-scripts-info",
1319
"build": "run-s clean && run-p build:*",
@@ -33,7 +39,7 @@
3339
"clean": "trash build test",
3440
"all": "run-s reset test cov:check doc:html",
3541
"prepare-release": "run-s all version doc:publish",
36-
"prepublish": "npm run build"
42+
"prepublish": "npm run build && npm run test:unit"
3743
},
3844
"scripts-info": {
3945
"info": "Display information about the package scripts",

tests/simple.spec.ts renamed to src/tests/simple.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import untypedTest, { TestInterface } from 'ava';
22
import Vue from 'vue';
33

4-
import VuexSimple, { getStoreBuilder, Module, Mutation, State } from '../src/index';
4+
import VuexSimple, { getStoreBuilder, Module, Mutation, State } from '../index';
55

66
@Module('test')
77
class TestModule {

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"target": "es2015",
44
"outDir": "build/main",
5-
"rootDir": ".",
5+
"rootDir": "src",
66
"baseUrl": ".",
77
"moduleResolution": "node",
88
"module": "commonjs",
@@ -40,7 +40,7 @@
4040
// "types": [],
4141
// "typeRoots": ["node_modules/@types", "src/types"]
4242
},
43-
"include": ["src/**/*.ts", "tests/**/*.ts"],
43+
"include": ["src/**/*.ts"],
4444
"exclude": ["node_modules/**"],
4545
"compileOnSave": false
4646
}

tsconfig.module.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,5 @@
55
"outDir": "build/module",
66
"module": "esnext"
77
},
8-
"exclude": [
9-
"node_modules/**"
10-
]
8+
"exclude": ["node_modules/**"]
119
}

0 commit comments

Comments
 (0)