Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Updates to ensure files get included in build output
Browse files Browse the repository at this point in the history
  • Loading branch information
BPScott committed May 21, 2021
1 parent 252a26a commit be9148a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
60 changes: 29 additions & 31 deletions packages/address-mocks/src/fixtures/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ import {
LoadCountryResponse,
} from '@shopify/address-consts';

/* eslint-disable @typescript-eslint/no-var-requires */
const countryCAFr: LoadCountryResponse = require('./country_ca_fr').default;
const countryCAEn: LoadCountryResponse = require('./country_ca_en').default;
const countryCAJa: LoadCountryResponse = require('./country_ca_ja').default;
const countryCAAf: LoadCountryResponse = require('./country_ca_af').default;
const countriesEn: LoadCountriesResponse = require('./countries_en').default;
const countriesJa: LoadCountriesResponse = require('./countries_ja').default;
const countriesAF: LoadCountriesResponse = require('./countries_af').default;
/* eslint-enable @typescript-eslint/no-var-requires */
import countryCAFr from './country_ca_fr';
import countryCAEn from './country_ca_en';
import countryCAJa from './country_ca_ja';
import countryCAAf from './country_ca_af';
import countriesEn from './countries_en';
import countriesJa from './countries_ja';
import countriesAF from './countries_af';

interface Fixtures {
countries: {
Expand All @@ -24,29 +22,29 @@ interface Fixtures {

export const fixtures: Fixtures = {
countries: {
AF: countriesAF,
DA: countriesEn,
DE: countriesEn,
EN: countriesEn,
ES: countriesEn,
FR: countriesEn,
IT: countriesEn,
JA: countriesJa,
NL: countriesEn,
PT: countriesEn,
PT_BR: countriesEn,
AF: countriesAF as LoadCountriesResponse,
DA: countriesEn as LoadCountriesResponse,
DE: countriesEn as LoadCountriesResponse,
EN: countriesEn as LoadCountriesResponse,
ES: countriesEn as LoadCountriesResponse,
FR: countriesEn as LoadCountriesResponse,
IT: countriesEn as LoadCountriesResponse,
JA: countriesJa as LoadCountriesResponse,
NL: countriesEn as LoadCountriesResponse,
PT: countriesEn as LoadCountriesResponse,
PT_BR: countriesEn as LoadCountriesResponse,
},
country: {
AF: countryCAAf,
DA: countryCAEn,
DE: countryCAEn,
EN: countryCAEn,
ES: countryCAEn,
FR: countryCAFr,
IT: countryCAEn,
JA: countryCAJa,
NL: countryCAEn,
PT: countryCAEn,
PT_BR: countryCAEn,
AF: countryCAAf as LoadCountryResponse,
DA: countryCAEn as LoadCountryResponse,
DE: countryCAEn as LoadCountryResponse,
EN: countryCAEn as LoadCountryResponse,
ES: countryCAEn as LoadCountryResponse,
FR: countryCAFr as LoadCountryResponse,
IT: countryCAEn as LoadCountryResponse,
JA: countryCAJa as LoadCountryResponse,
NL: countryCAEn as LoadCountryResponse,
PT: countryCAEn as LoadCountryResponse,
PT_BR: countryCAEn as LoadCountryResponse,
},
};
3 changes: 3 additions & 0 deletions packages/useful-types/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
export * from './types';

// Empty export to make sure this file has valid js output
export const __ensureNonEmptyFile = '';
1 change: 1 addition & 0 deletions packages/web-worker/sewing-kit.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default createPackage(pkg => {
pkg.entry({root: './src/index'});
pkg.entry({name: 'babel', root: './src/babel-plugin'});
pkg.entry({name: 'webpack', root: './src/webpack-parts'});
pkg.entry({name: 'webpack-loader', root: './src/webpack-parts/loader'});
pkg.entry({name: 'worker', root: './src/worker'});
pkg.use(quiltPackage());
});

0 comments on commit be9148a

Please sign in to comment.