tldraw/scripts
alex 71aef1764d
Rework the assets package for strategy-specific imports (#1341)
The assets package now only exports esm-formatted .js files. There's one
for each strategy - import-based, and meta.url-based. These are directly
generated as .js and .d.ts files rather than generated as .ts and
converted to js/dts through other means.

As this package depends on esm-specific stuff to function, we don't
publish a cjs version any more.

### Change Type

<!-- 💡 Indicate the type of change your pull request is. -->
<!-- 🤷‍♀️ If you're not sure, don't select anything -->
<!-- ✂️ Feel free to delete unselected options -->

<!-- To select one, put an x in the box: [x] -->

- [ ] `patch` — Bug Fix
- [ ] `minor` — New Feature
- [x] `major` — Breaking Change

- [ ] `dependencies` — Dependency Update (publishes a `patch` release,
for devDependencies use `internal`)

- [ ] `documentation` — Changes to the documentation only (will not
publish a new version)
- [ ] `tests` — Changes to any testing-related code only (will not
publish a new version)
- [ ] `internal` — Any other changes that don't affect the published
package (will not publish a new version)

### Release Notes

- [dev] If you're using the `@tldraw/assets` package, you need to update
your code to `import { getAssetUrlsByImport } from
'@tldraw/assets/imports'` instead of `import { getBundlerAssetUrls }
from '@tldraw/assets`
2023-05-09 16:08:38 +00:00
..
lib Rework the assets package for strategy-specific imports (#1341) 2023-05-09 16:08:38 +00:00
api-check.ts derived presence state (#1204) 2023-04-27 18:03:19 +00:00
build-api.ts [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
build-package.ts [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
CHANGELOG.md transfer-out: transfer out 2023-04-25 12:01:25 +01:00
check-scripts.ts Rework the assets package for strategy-specific imports (#1341) 2023-05-09 16:08:38 +00:00
clean.sh [chore] use explicit yarn in clean script (#1216) 2023-05-02 13:33:30 +00:00
lint.ts lite: run prettier on js + json files 2023-05-02 16:12:34 +01:00
package.json [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
postpack.sh transfer-out: transfer out 2023-04-25 12:01:25 +01:00
prepack.ts [chore] update lazyrepo (#1211) 2023-05-02 12:25:26 +00:00
publish-canary.ts Fix publishing (#1338) 2023-05-09 13:25:56 +00:00
publish-manual.ts Fix publishing (#1338) 2023-05-09 13:25:56 +00:00
publish-new.ts Fix publishing (#1338) 2023-05-09 13:25:56 +00:00
refresh-assets.ts Rework the assets package for strategy-specific imports (#1341) 2023-05-09 16:08:38 +00:00
tsconfig.json transfer-out: transfer out 2023-04-25 12:01:25 +01:00
typecheck.ts transfer-out: transfer out 2023-04-25 12:01:25 +01:00