mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixed packaging issues
This commit is contained in:
parent
fac16c3fc9
commit
c94859a180
26
gulpfile.ts
26
gulpfile.ts
@ -151,6 +151,17 @@ export class Gulpfile {
|
||||
.pipe(gulp.dest("./build/package"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes /// <reference from compiled sources.
|
||||
*/
|
||||
@Task()
|
||||
packageReplaceReferences() {
|
||||
return gulp.src("./build/package/**/*.d.ts")
|
||||
.pipe(replace(`/// <reference types="node" />`, ""))
|
||||
.pipe(replace(`/// <reference types="chai" />`, ""))
|
||||
.pipe(gulp.dest("./build/package"));
|
||||
}
|
||||
|
||||
/**
|
||||
* Moves all compiled files to the final package directory.
|
||||
*/
|
||||
@ -178,16 +189,7 @@ export class Gulpfile {
|
||||
@Task()
|
||||
packageReadmeFile() {
|
||||
return gulp.src("./README.md")
|
||||
.pipe(replace(/```typescript([\s\S]*?)```/g, "```javascript$1```"))
|
||||
.pipe(gulp.dest("./build/package"));
|
||||
}
|
||||
|
||||
/**
|
||||
* This task will copy typings.json file to the build package.
|
||||
*/
|
||||
@Task()
|
||||
copyTypingsFile() {
|
||||
return gulp.src("./typings.json")
|
||||
// .pipe(replace(/```typescript([\s\S]*?)```/g, "```javascript$1```"))
|
||||
.pipe(gulp.dest("./build/package"));
|
||||
}
|
||||
|
||||
@ -200,8 +202,8 @@ export class Gulpfile {
|
||||
"clean",
|
||||
"packageCompile",
|
||||
"packageMoveCompiledFiles",
|
||||
"packageClearCompileDirectory",
|
||||
["packagePreparePackageFile", "packageReadmeFile", "copyTypingsFile"]
|
||||
["packageClearCompileDirectory", "packageReplaceReferences"],
|
||||
["packagePreparePackageFile", "packageReadmeFile"]
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "typeorm",
|
||||
"private": true,
|
||||
"version": "0.0.3-alpha.18",
|
||||
"version": "0.0.3-alpha.19",
|
||||
"description": "Data-mapper ORM for Typescript",
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user