move old version to v1 sub-dir

This commit is contained in:
Dimitri Benin
2018-12-12 01:02:54 +01:00
parent 10739f8bd4
commit c128ba5cdb
4 changed files with 13 additions and 8 deletions
@@ -4,18 +4,18 @@ const conf = new Conf<string | number | boolean>();
new Conf<string>({
defaults: {
foo: 'bar',
unicorn: 'rainbow'
unicorn: 'rainbow',
},
configName: '',
projectName: 'foo',
cwd: ''
cwd: '',
});
// $ExpectError
new Conf<string>({
defaults: {
foo: 'bar',
unicorn: ['rainbow']
}
unicorn: ['rainbow'],
},
});
conf.set('foo', 'bar');
conf.set('hello', 1);
@@ -31,7 +31,7 @@ conf.clear();
conf.store = {
foo: 'bar',
unicorn: 'rainbow'
unicorn: 'rainbow',
};
conf.path; // $ExpectType string
@@ -9,10 +9,15 @@
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"baseUrl": "../../",
"typeRoots": [
"../"
"../../"
],
"paths": {
"conf": [
"conf/v1"
]
},
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
@@ -21,4 +26,4 @@
"index.d.ts",
"conf-tests.ts"
]
}
}