Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
"deleteOutDir": true,
"assets": [
{
"include": "graffiti/*.json",
"outDir": "dist"
}
],
"watchAssets": true
}
}
889 changes: 889 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"test:cov": "jest --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"postinstall": "node ./scripts/update-package-type.js && rm -rf ./node_modules/bctsl-sdk/.build && tsc -b ./node_modules/bctsl-sdk/tsconfig.cjs.json ./node_modules/bctsl-sdk/tsconfig.esm.json ./node_modules/bctsl-sdk/tsconfig.types.json"
"postinstall": "node ./scripts/update-package-type.js && tsc -b ./node_modules/bctsl-sdk/tsconfig.cjs.json ./node_modules/bctsl-sdk/tsconfig.esm.json ./node_modules/bctsl-sdk/tsconfig.types.json"
},
"dependencies": {
"@aeternity/aepp-sdk": "^13.3.2",
Expand Down Expand Up @@ -52,7 +52,10 @@
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2",
"typeorm": "^0.3.27",
"ws": "^8.18.2"
"ws": "^8.18.2",
"aws-sdk": "^2.1605.0",
"ipfs-http-client": "^56.0.1",
"is-ipfs": "^6.0.2"
},
"devDependencies": {
"@nestjs/cli": "^11.0.10",
Expand Down
8 changes: 8 additions & 0 deletions scripts/update-package-type.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fs = require('fs');
const path = require('path');
const { rmSync } = require('fs');

// Define the path to the package.json file
const packageJsonPath = path.join(
Expand Down Expand Up @@ -38,5 +39,12 @@ fs.readFile(packageJsonPath, 'utf8', (err, data) => {
return;
}
console.log('Successfully updated package.json to use "type": "commonjs"');
// Clean the build directory in a cross-platform way
try {
const buildDir = path.join(__dirname, '../node_modules/bctsl-sdk/.build');
rmSync(buildDir, { recursive: true, force: true });
} catch (e) {
console.warn('Warning cleaning bctsl-sdk .build folder:', e.message);
}
});
});
2 changes: 2 additions & 0 deletions src/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { TrendingTagsModule } from './trending-tags/trending-tags.module';
import { PostModule } from './social/post.module';
import { DexModule } from './dex/dex.module';
import { TipModule } from './tipping/tip.module';
import { GraffitiModule } from './graffiti/graffiti.module';

@Module({
imports: [
Expand Down Expand Up @@ -65,6 +66,7 @@ import { TipModule } from './tipping/tip.module';
PostModule,
DexModule,
TipModule,
GraffitiModule,
],
controllers: [AppController],
providers: [AppService],
Expand Down
Loading