Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

Commit a07de9e

Browse files
committed
Improve NPM config to enable install from Github
1 parent 139a2c6 commit a07de9e

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
"test:integration": "npm run build && ts-node node_modules/tape/bin/tape 'test/integration/**/test.ts' | tap-bail | tap-spec",
1111
"cover": "rimraf .nyc_output coverage && nyc npm run test:unit",
1212
"coverage": "nyc report --reporter=text-lcov | coveralls",
13-
"prepack": "npm run build"
13+
"prepare": "npm run build"
1414
},
15+
"files": [
16+
"dist/",
17+
"README.md"
18+
],
1519
"keywords": [
1620
"twig",
1721
"twing",
@@ -54,6 +58,7 @@
5458
"@types/loader-utils": "^1.1.3",
5559
"@types/luxon": "^1.15.2",
5660
"@types/memory-fs": "^0.3.2",
61+
"@types/node": "^14.14.35",
5762
"@types/schema-utils": "^1.0.0",
5863
"@types/sinon": "^7.0.13",
5964
"@types/tape": "^4.2.33",

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const optionsSchema = {
3333

3434
class PathSupportingArrayLoader extends TwingLoaderArray {
3535
getSourceContext(name: string, from: TwingSource): Promise<TwingSource> {
36-
return super.getSourceContext(name, from).then((source) => {
36+
return super.getSourceContext(name, from).then((source:TwingSource) => {
3737
return new TwingSource(source.getCode(), source.getName(), name);
3838
})
3939
}

0 commit comments

Comments
 (0)