Skip to content

Commit

Permalink
chore: Remove references to "apps-ts-definition" package (#663)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-gubert authored Sep 12, 2023
1 parent b2a842d commit 37949b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 55 deletions.
16 changes: 1 addition & 15 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
const fs = require('fs');

const gulp = require('gulp');
const del = require('del');
const sourcemaps = require('gulp-sourcemaps');
const tsc = require('gulp-typescript');
const shell = require('gulp-shell');
const bump = require('gulp-bump');

const tsp = tsc.createProject('tsconfig.json');

Expand All @@ -29,22 +26,11 @@ function compileTs() {
return tsp.src().pipe(sourcemaps.init()).pipe(tsp()).pipe(sourcemaps.write('.')).pipe(gulp.dest('.'));
}

function updateTsDefinitionVersion() {
const { version } = JSON.parse(fs.readFileSync('./package.json'));

return gulp.src('src/definition/package.json').pipe(bump({ version })).pipe(gulp.dest('src/definition/'));
}

// Tasks for getting it ready and publishing
function tsDefinitionModuleFiles() {
return gulp.src(['LICENSE', 'src/definition/package.json']).pipe(gulp.dest('definition/'));
}

function watch() {
gulp.watch('src/**/*.ts', gulp.series(compileTs));
}

const compile = gulp.series(cleanGenerated, compileTs, updateTsDefinitionVersion, tsDefinitionModuleFiles);
const compile = gulp.series(cleanGenerated, compileTs);

gulp.task('bundle', bundleSdk);

Expand Down
40 changes: 0 additions & 40 deletions src/definition/package.json

This file was deleted.

0 comments on commit 37949b9

Please sign in to comment.