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

Commit

Permalink
Add build runtime and remove outdated config (#1829)
Browse files Browse the repository at this point in the history
* Remove outdated build script and dependencies on tslib
* Add runtimes to all packages
* Update runtimes of node-only packages
  • Loading branch information
BPScott authored Apr 9, 2021
1 parent 0ca29bf commit bd5934d
Show file tree
Hide file tree
Showing 235 changed files with 637 additions and 508 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
"react": "16.12.0",
"react-dom": "16.12.0",
"rimraf": "^2.6.2",
"tslib": "^1.14.1",
"typescript": "^3.7.5",
"yalc": "^1.0.0-pre.50"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/address-consts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 2.2.2 - 2021-03-03

### Fixed
Expand Down
6 changes: 0 additions & 6 deletions packages/address-consts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "Constants and types relating to `@shopify/address`",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"sideEffects": false,
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -40,8 +37,5 @@
"require": "./index.js",
"esnext": "./index.esnext"
}
},
"dependencies": {
"tslib": "^1.14.1"
}
}
3 changes: 2 additions & 1 deletion packages/address-consts/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
6 changes: 6 additions & 0 deletions packages/address-mocks/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 1.5.3 - 2021-03-03

### Fixed
Expand Down
6 changes: 1 addition & 5 deletions packages/address-mocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "Address mocks for `@shopify/address`",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"publishConfig": {
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
Expand All @@ -28,8 +25,7 @@
"sideEffects": false,
"dependencies": {
"@shopify/address-consts": "^2.2.3",
"@shopify/jest-dom-mocks": "^2.11.4",
"tslib": "^1.14.1"
"@shopify/jest-dom-mocks": "^2.11.4"
},
"files": [
"build/*",
Expand Down
3 changes: 2 additions & 1 deletion packages/address-mocks/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
6 changes: 5 additions & 1 deletion packages/address/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

<!-- ## Unreleased -->
## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 2.10.4 - 2021-04-07

Expand Down
6 changes: 1 addition & 5 deletions packages/address/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "Address utilities for formatting addresses",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"publishConfig": {
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
Expand All @@ -28,8 +25,7 @@
},
"sideEffects": false,
"dependencies": {
"@shopify/address-consts": "^2.2.3",
"tslib": "^1.14.1"
"@shopify/address-consts": "^2.2.3"
},
"files": [
"build/*",
Expand Down
3 changes: 2 additions & 1 deletion packages/address/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
6 changes: 6 additions & 0 deletions packages/admin-graphql-api-utilities/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 0.2.2 - 2021-03-03

### Fixed
Expand Down
6 changes: 0 additions & 6 deletions packages/admin-graphql-api-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "A set of utilities to use when consuming Shopify’s admin GraphQL API",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"publishConfig": {
"access": "public",
"@shopify:registry": "https://registry.npmjs.org"
Expand All @@ -23,9 +20,6 @@
},
"homepage": "https://github.com/Shopify/quilt/blob/main/packages/admin-graphql-api-utilities/README.md",
"sideEffects": false,
"dependencies": {
"tslib": "^1.14.1"
},
"files": [
"build/*",
"!*.tsbuildinfo",
Expand Down
3 changes: 2 additions & 1 deletion packages/admin-graphql-api-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
6 changes: 6 additions & 0 deletions packages/ast-utilities/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 0.2.2 - 2021-03-03

### Fixed
Expand Down
4 changes: 0 additions & 4 deletions packages/ast-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "Utilities for working with Abstract Syntax Trees (ASTs)",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"sideEffects": false,
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -54,7 +51,6 @@
"jest-matcher-utils": "^26.6.2",
"remark-parse": "^7.0.1",
"remark-stringify": "^7.0.3",
"tslib": "^1.14.1",
"unified": "^8.4.0",
"unist-builder": "^1.0.4"
},
Expand Down
3 changes: 2 additions & 1 deletion packages/ast-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.entry({name: 'javascript', root: './src/javascript'});
pkg.entry({name: 'markdown', root: './src/markdown'});
Expand Down
6 changes: 6 additions & 0 deletions packages/async/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 2.2.2 - 2021-03-03

### Fixed
Expand Down
6 changes: 0 additions & 6 deletions packages/async/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "Primitives for loading parts of an application asynchronously",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"sideEffects": false,
"publishConfig": {
"access": "public",
Expand Down Expand Up @@ -59,8 +56,5 @@
"require": "./index.js",
"esnext": "./index.esnext"
}
},
"dependencies": {
"tslib": "^1.14.1"
}
}
3 changes: 2 additions & 1 deletion packages/async/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.entry({name: 'babel', root: './src/babel-plugin'});
pkg.use(quiltPackage());
Expand Down
6 changes: 6 additions & 0 deletions packages/browser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 1.1.2 - 2021-03-03

### Fixed
Expand Down
4 changes: 0 additions & 4 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "Utilities for extracting browser information from user-agents",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"sideEffects": false,
"publishConfig": {
"access": "public",
Expand All @@ -32,7 +29,6 @@
"index.d.ts"
],
"dependencies": {
"tslib": "^1.14.1",
"ua-parser-js": "^0.7.17"
},
"module": "index.mjs",
Expand Down
3 changes: 2 additions & 1 deletion packages/browser/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
6 changes: 6 additions & 0 deletions packages/csrf-token-fetcher/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 0.1.2 - 2021-03-03

### Fixed
Expand Down
6 changes: 0 additions & 6 deletions packages/csrf-token-fetcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "JavaScript utility function to fetch the CSRF token required to make requests to a Rails server",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"sideEffects": false,
"publishConfig": {
"access": "public",
Expand All @@ -31,9 +28,6 @@
"index.esnext",
"index.d.ts"
],
"dependencies": {
"tslib": "^1.14.1"
},
"module": "index.mjs",
"esnext": "index.esnext",
"exports": {
Expand Down
3 changes: 2 additions & 1 deletion packages/csrf-token-fetcher/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
6 changes: 6 additions & 0 deletions packages/css-utilities/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## Unreleased

### Changed

- Removed dependency on tslib, as we no-longer compile with `tsc`. [#1829](https://github.com/Shopify/quilt/pull/1829)

## 1.1.2 - 2021-03-03

### Fixed
Expand Down
6 changes: 1 addition & 5 deletions packages/css-utilities/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"description": "A set of CSS styling-related utilities",
"main": "index.js",
"types": "index.d.ts",
"scripts": {
"build": "tsc --p tsconfig.json"
},
"sideEffects": false,
"publishConfig": {
"access": "public",
Expand All @@ -25,8 +22,7 @@
"homepage": "https://github.com/Shopify/quilt/blob/main/packages/css-utilities/README.md",
"dependencies": {
"@types/classnames": "^2.2.7",
"classnames": "^2.2.6",
"tslib": "^1.14.1"
"classnames": "^2.2.6"
},
"files": [
"build/*",
Expand Down
3 changes: 2 additions & 1 deletion packages/css-utilities/sewing-kit.config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import {createPackage} from '@sewing-kit/config';
import {createPackage, Runtime} from '@sewing-kit/config';

import {quiltPackage} from '../../config/sewing-kit';

export default createPackage(pkg => {
pkg.runtimes(Runtime.Browser, Runtime.Node);
pkg.entry({root: './src/index'});
pkg.use(quiltPackage());
});
Loading

0 comments on commit bd5934d

Please sign in to comment.