Skip to content

Commit aafb0f7

Browse files
committed
Added compiled files for npm package
1 parent ba925c1 commit aafb0f7

File tree

7 files changed

+42
-40
lines changed

7 files changed

+42
-40
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# Library directories
12
node_modules
2-
coverage
3+
coverage
4+
lib

.npmignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
src
12
node_modules
23

34
# Testing
45
config
56
coverage
67
karma.conf.js
7-
tsconfig.json
8+
9+
# Config Files
10+
.travis.yml
11+
.gitignore
12+
tsconfig.json

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
# Change Log
22

3+
## v0.1.4
4+
**Bugfixes:**
5+
- Added packaged library to npm package for systemjs support (fixes [#6](https://github.com/neroniaky/angular2-token/issues/6))
6+
37
## v0.1.3
48
**Bugfixes:**
5-
- Removes deprecated RouterState.queryParam for ActivatedRoute.params (fixes [#5](https://github.com/neroniaky/angular2-token/issues/5))
9+
- Removes deprecated RouterState.queryParams for ActivatedRoute.params (fixes [#5](https://github.com/neroniaky/angular2-token/issues/5))
610

711
## v0.1.2
812
**Features:**

angular2-token.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from './src';
1+
export * from './lib';

angular2-token.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
exports.Angular2TokenService = require('./src/angular2-token.service').Angular2TokenService;
1+
exports.Angular2TokenService = require('./lib/angular2-token.service').Angular2TokenService;

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
{
22
"name": "angular2-token",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"description": "Angular2 service for token based authentication",
55
"main": "./angular2-token.js",
66
"typings": "./angular2-token.d.ts",
77
"scripts": {
8-
"test": "karma start"
8+
"test": "karma start",
9+
"build": "rm -rf lib && tsc"
910
},
1011
"keywords": [
1112
"angular2",

tsconfig.json

Lines changed: 23 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,28 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
4-
"module": "commonjs",
5-
"moduleResolution": "node",
6-
"emitDecoratorMetadata": true,
7-
"experimentalDecorators": true,
8-
"sourceMap": true,
9-
"noEmitHelpers": true,
10-
"strictNullChecks": false,
11-
"baseUrl": "./src",
12-
"paths": [],
13-
"lib": [
14-
"dom",
15-
"es6"
16-
],
17-
"types": [
18-
"core-js",
19-
"hammerjs",
20-
"jasmine",
21-
"node",
22-
"protractor",
23-
"source-map",
24-
"webpack"
25-
]
3+
"noImplicitAny": true,
4+
"module": "commonjs",
5+
"target": "ES5",
6+
"emitDecoratorMetadata": true,
7+
"experimentalDecorators": true,
8+
"sourceMap": true,
9+
"declaration": true,
10+
"outDir": "lib",
11+
"suppressImplicitAnyIndexErrors": true
2612
},
13+
"files": [
14+
"src/angular2-token.service.ts"
15+
],
2716
"exclude": [
28-
"node_modules",
29-
"dist"
17+
"node_modules"
3018
],
31-
"awesomeTypescriptLoaderOptions": {
32-
"forkChecker": true,
33-
"useWebpackText": true
34-
},
35-
"compileOnSave": false,
36-
"buildOnSave": false,
37-
"atom": { "rewriteTsconfig": false }
38-
}
19+
"types": [
20+
"core-js",
21+
"hammerjs",
22+
"jasmine",
23+
"node",
24+
"protractor",
25+
"source-map",
26+
"webpack"
27+
]
28+
}

0 commit comments

Comments
 (0)