Skip to content

Commit 33ec5d1

Browse files
committed
non-monorepo
1 parent 02af4ca commit 33ec5d1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+2188
-13466
lines changed

ember-string/.attw.json .attw.json

File renamed without changes.
File renamed without changes.
File renamed without changes.

.github/workflows/ci.yml

+33
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,39 @@ jobs:
5050
- name: Run Tests
5151
run: pnpm test
5252

53+
types-scenarios:
54+
name: "Types: ${{ matrix.tsVersion }}"
55+
runs-on: ubuntu-latest
56+
needs: test
57+
58+
strategy:
59+
matrix:
60+
tsVersion:
61+
- '~4.9'
62+
- '~5.0'
63+
- '~5.1'
64+
- '~5.2'
65+
- '~5.3'
66+
- 'beta'
67+
steps:
68+
- uses: actions/checkout@v4
69+
- uses: pnpm/action-setup@v3
70+
with:
71+
version: 8
72+
- uses: actions/setup-node@v4
73+
with:
74+
node-version: 18
75+
cache: pnpm
76+
- name: Install Dependencies
77+
run: pnpm install --frozen-lockfile
78+
- name: Swap TS Version
79+
run: pnpm add --save-dev typescript@${{ matrix.tsVersion }}
80+
- name: Check Types
81+
run: |
82+
pnpm tsc -v
83+
pnpm test:types
84+
85+
5386
try-scenarios:
5487
name: ${{ matrix.try-scenario }}
5588
runs-on: ubuntu-latest

.prettierignore

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1-
# Prettier is also run from each package, so the ignores here
2-
# protect against files that may not be within a package
1+
# unconventional js
2+
/blueprints/*/files/
33

4-
# misc
5-
!.*
6-
.lint-todo/
4+
# compiled output
5+
/dist/
6+
/declarations/
77

8-
# ember-try
9-
/.node_modules.ember-try/
10-
/pnpm-lock.ember-try.yaml
8+
# misc
9+
/coverage/
File renamed without changes.

config/ember-cli-update.json

-21
This file was deleted.

ember-string/.gitignore

-17
This file was deleted.

ember-string/.npmignore

-6
This file was deleted.

ember-string/.prettierignore

-9
This file was deleted.

ember-string/.prettierrc.cjs

-6
This file was deleted.

ember-string/package.json

-77
This file was deleted.

ember-string/unpublished-development-types/.gitkeep

Whitespace-only changes.

package.json

+71-20
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,83 @@
11
{
2-
"private": true,
2+
"name": "@ember/string",
3+
"version": "3.1.1",
4+
"description": "A set of utilities to transform strings",
5+
"type": "module",
36
"repository": "https://github.com/emberjs/ember-string",
47
"license": "MIT",
58
"author": "",
6-
"scripts": {
7-
"build": "pnpm --filter @ember/string build",
8-
"lint": "pnpm --filter '*' lint",
9-
"lint:fix": "pnpm --filter '*' lint:fix",
10-
"prepare": "pnpm build",
11-
"start": "concurrently 'npm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow",
12-
"start:addon": "pnpm --filter @ember/string start --no-watch.clearScreen",
13-
"start:test-app": "pnpm --filter test-app start",
14-
"test": "pnpm --filter '*' test",
15-
"test:ember": "pnpm --filter '*' test:ember"
9+
"exports": {
10+
".": {
11+
"types": "./declarations/index.d.ts",
12+
"default": "./dist/index.js"
13+
}
1614
},
17-
"volta": {
18-
"node": "18.4.0"
15+
"typesVersions": {
16+
"*": {
17+
"*": [
18+
"declarations/*"
19+
]
20+
}
1921
},
20-
"engines": {
21-
"node": "12.* || 14.* || >= 16"
22+
"files": [
23+
"dist",
24+
"declarations",
25+
"addon-main.cjs"
26+
],
27+
"scripts": {
28+
"build": "concurrently 'npm:build:*'",
29+
"build:js": "rollup --config",
30+
"build:types": "tsc --declaration",
31+
"lint": "pnpm build; concurrently 'npm:lint:*(!fix)' --names 'lint:'",
32+
"lint:fix": "concurrently 'npm:lint:*:fix' --names 'fix:'",
33+
"lint:js": "eslint . --cache",
34+
"lint:js:fix": "eslint . --fix",
35+
"lint:types": "tsc --noEmit --emitDeclarationOnly false",
36+
"lint:package": "publint",
37+
"lint:published-types": "pnpm pack; attw; rm *.tgz",
38+
"start": "concurrently 'npm:start:*'",
39+
"start:js": "rollup --config --watch --no-watch.clearScreen",
40+
"start:types": "tsc --declaration --watch",
41+
"test": "vitest --run",
42+
"test:types": "tsc --noEmit --project ./tests/type-tests/tsconfig.json",
43+
"test:watch": "vitest",
44+
"prepack": "rollup --config"
2245
},
23-
"pnpm": {
24-
"overrides": {
25-
"@types/eslint": "^7.0.0"
26-
}
46+
"dependencies": {
47+
"decorator-transforms": "^1.0.1"
2748
},
2849
"devDependencies": {
50+
"@babel/core": "^7.23.6",
51+
"@babel/plugin-transform-typescript": "^7.23.6",
52+
"@babel/runtime": "^7.17.0",
53+
"@embroider/addon-dev": "^4.1.0",
54+
"@tsconfig/ember": "^3.0.2",
55+
"@types/ember__debug": "^4.0.7",
56+
"@typescript-eslint/eslint-plugin": "^6.14.0",
57+
"@typescript-eslint/parser": "^6.14.0",
58+
"@rollup/plugin-babel": "^6.0.4",
59+
"babel-plugin-ember-template-compilation": "^2.2.1",
60+
"concurrently": "^8.2.2",
61+
"ember-template-lint": "^5.13.0",
62+
"eslint": "^8.56.0",
63+
"eslint-config-prettier": "^9.1.0",
64+
"eslint-plugin-ember": "^11.12.0",
65+
"eslint-plugin-n": "^16.4.0",
66+
"eslint-plugin-prettier": "^5.0.1",
67+
"prettier": "^3.1.1",
68+
"prettier-plugin-ember-template-tag": "^1.1.0",
2969
"@arethetypeswrong/cli": "^0.15.0",
30-
"publint": "^0.2.7"
70+
"publint": "^0.2.7",
71+
"rollup": "^4.9.1",
72+
"rollup-plugin-copy": "^3.5.0",
73+
"vitest": "^0.18.0",
74+
"typescript": "^5.3.3"
75+
},
76+
"publishConfig": {
77+
"registry": "https://registry.npmjs.org"
78+
},
79+
"volta": {
80+
"node": "20.11.1",
81+
"pnpm": "8.15.4"
3182
}
3283
}

0 commit comments

Comments
 (0)