feat(dependencies and cache): remove caching
This commit is contained in:
parent
9ae4f9f82b
commit
92ac844954
7
dist/index.js
vendored
7
dist/index.js
vendored
@ -8,15 +8,14 @@ const defaultTsNodeOptions = {
|
||||
target: 'es2015',
|
||||
experimentalDecorators: true
|
||||
},
|
||||
skipIgnore: true,
|
||||
cacheDirectory: path.join(__dirname, '../tscache')
|
||||
skipIgnore: true
|
||||
};
|
||||
if (process.argv.includes('--web')) {
|
||||
const previousCompilerOptions = defaultTsNodeOptions.compilerOptions;
|
||||
defaultTsNodeOptions.compilerOptions = Object.assign({}, previousCompilerOptions, { lib: [...previousCompilerOptions.lib, 'dom'] });
|
||||
}
|
||||
if (process.argv.includes('--nocache')) {
|
||||
defaultTsNodeOptions.cache = false;
|
||||
// currently caching is not used
|
||||
}
|
||||
tsNode.register(defaultTsNodeOptions);
|
||||
if (process.env.CLI_CALL_TSRUN) {
|
||||
@ -27,4 +26,4 @@ if (process.env.CLI_CALL_TSRUN) {
|
||||
const pathToLoad = path.join(process.cwd(), pathToTsFile);
|
||||
Promise.resolve().then(() => require(pathToLoad));
|
||||
}
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLDZCQUE2QjtBQUM3QixrQ0FBa0M7QUFHbEMsTUFBTSxvQkFBb0IsR0FBbUI7SUFDM0MsZUFBZSxFQUFtQjtRQUNoQyxHQUFHLEVBQUUsQ0FBQyxRQUFRLEVBQUUsUUFBUSxDQUFDO1FBQ3pCLE1BQU0sRUFBTyxRQUFRO1FBQ3JCLHNCQUFzQixFQUFFLElBQUk7S0FDN0I7SUFDRCxVQUFVLEVBQUUsSUFBSTtJQUNoQixjQUFjLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxTQUFTLEVBQUUsWUFBWSxDQUFDO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FBZSxFQUFtQjtRQUNoQyxHQUFHLEVBQUUsQ0FBQyxRQUFRLEVBQUUsUUFBUSxDQUFDO1FBQ3pCLE1BQU0sRUFBTyxRQUFRO1FBQ3JCLHNCQUFzQixFQUFFLElBQUk7S0FDN0I7SUFDRCxVQUFVLEVBQUUsSUFBSTtDQUNqQixDQUFDO0FBRUYsSUFBSSxPQUFPLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxPQUFPLENBQUMsRUFBRTtJQUNsQyxNQUFNLHVCQUF1QixHQUFHLG9CQUFvQixDQUFDLGVBQWtDLENBQUM7SUFDeEYsb0JBQW9CLENBQUMsZUFBZSxxQkFDL0IsdUJBQXVCLElBQzFCLEdBQUcsRUFBRSxDQUFDLEdBQUcsdUJBQXVCLENBQUMsR0FBRyxFQUFFLEtBQUssQ0FBQyxHQUM3QyxDQUFBO0NBQ0Y7QUFFRCxJQUFJLE9BQU8sQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLFdBQVcsQ0FBQyxFQUFFO0lBQ3RDLGdDQUFnQztDQUNqQztBQUVELE1BQU0sQ0FBQyxRQUFRLENBQUMsb0JBQW9CLENBQUMsQ0FBQztBQUV0QyxJQUFJLE9BQU8sQ0FBQyxHQUFHLENBQUMsY0FBYyxFQUFFO0lBQzlCLHlCQUF5QjtJQUN6QixxQ0FBcUM7SUFDckMsc0NBQXNDO0lBQ3RDLE1BQU0sWUFBWSxHQUFHLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFFckMsTUFBTSxVQUFVLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxFQUFFLEVBQUUsWUFBWSxDQUFDLENBQUM7SUFDMUQscUNBQU8sVUFBVSxHQUFFO0NBQ3BCIn0=
|
806
package-lock.json
generated
806
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
17
package.json
17
package.json
@ -12,19 +12,18 @@
|
||||
"scripts": {
|
||||
"test": "(tsbuild && node ./cli.js test/test.ts)",
|
||||
"format": "(gitzone format)",
|
||||
"build": "(tsbuild)",
|
||||
"postinstall": "(node ./cli.js scripts/postinstall.ts)"
|
||||
"build": "(tsbuild)"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^10.5.7",
|
||||
"tslint": "^5.11.0",
|
||||
"tslint-config-prettier": "^1.17.0"
|
||||
"@types/node": "^11.10.4",
|
||||
"tslint": "^5.13.1",
|
||||
"tslint-config-prettier": "^1.18.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gitzone/tsbuild": "^2.0.22",
|
||||
"@pushrocks/smartfile": "^6.0.6",
|
||||
"ts-node": "^7.0.0",
|
||||
"typescript": "^3.0.1"
|
||||
"@gitzone/tsbuild": "^2.1.8",
|
||||
"@pushrocks/smartfile": "^7.0.0",
|
||||
"ts-node": "^8.0.2",
|
||||
"typescript": "^3.3.3333"
|
||||
},
|
||||
"private": false
|
||||
}
|
||||
|
@ -1,10 +0,0 @@
|
||||
// This file takes care of some postinstall actions like clearing the TypeScript cache.
|
||||
import * as smartfile from '@pushrocks/smartfile';
|
||||
import * as path from 'path';
|
||||
|
||||
const run = async () => {
|
||||
const tsCacheDir = path.join(__dirname, '../tscache');
|
||||
await smartfile.fs.ensureEmptyDir(tsCacheDir);
|
||||
}
|
||||
|
||||
run();
|
@ -8,8 +8,7 @@ const defaultTsNodeOptions: tsNode.Options = {
|
||||
target: <any>'es2015', // Script Target should be a string -> 2 is for ES2015
|
||||
experimentalDecorators: true
|
||||
},
|
||||
skipIgnore: true,
|
||||
cacheDirectory: path.join(__dirname, '../tscache')
|
||||
skipIgnore: true
|
||||
};
|
||||
|
||||
if (process.argv.includes('--web')) {
|
||||
@ -21,7 +20,7 @@ if (process.argv.includes('--web')) {
|
||||
}
|
||||
|
||||
if (process.argv.includes('--nocache')) {
|
||||
defaultTsNodeOptions.cache = false;
|
||||
// currently caching is not used
|
||||
}
|
||||
|
||||
tsNode.register(defaultTsNodeOptions);
|
||||
|
Loading…
Reference in New Issue
Block a user