Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove obsolete scripts in graphcache

-39
-39
exchanges/graphcache/scripts/prepare-extras.js
··· 1 - #!/usr/bin/env node 2 - 3 - const fs = require('fs'); 4 - const path = require('path'); 5 - 6 - const dir = path.resolve(__dirname, '../extras'); 7 - if (!fs.existsSync(dir)) { 8 - fs.mkdirSync(dir); 9 - } 10 - 11 - const pathToPkgJson = path.resolve(dir, 'package.json'); 12 - if (fs.existsSync(pathToPkgJson)) { 13 - fs.unlinkSync(pathToPkgJson); 14 - } 15 - 16 - const mainPkgJson = require('../package.json'); 17 - 18 - const contents = JSON.stringify( 19 - { 20 - name: '@urql/exchange-graphcache-extras', 21 - version: mainPkgJson.version, 22 - private: true, 23 - sideEffects: false, 24 - description: mainPkgJson.description, 25 - repository: mainPkgJson.repository, 26 - bugs: mainPkgJson.bugs, 27 - homepage: mainPkgJson.homepage, 28 - main: '../dist/urql-exchange-graphcache-extras.js', 29 - module: '../dist/urql-exchange-graphcache-extras.es.js', 30 - types: '../dist/types/extras/index.d.ts', 31 - source: '../src/extras/index.ts', 32 - author: mainPkgJson.author, 33 - license: mainPkgJson.license, 34 - }, 35 - undefined, 36 - 2 37 - ); 38 - 39 - fs.writeFileSync(pathToPkgJson, contents);